x = 'clcoding'
print(x.isalpha())
This code outputs the following:
True
The expression x.isalpha() checks if all the characters in the string x are alphabetic letters (a-z and A-Z). Since the string 'clcoding' only contains alphabetic letters, the expression evaluates to True.
0 Comments:
Post a Comment