What is the output of print('abc'.isalpha()) in Python?
print('abc'.isalpha())
Correct answer
A. True
5 views
A. True
5 views
isalpha() is True when all characters are letters.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is A? Ask here and get an explanation.