X.isalpha()


#1

I was testing the example, and it gave me “RUN” instead of “false”. Why?
If I change x to another letter, it gives me false.


#2
x.isalpha()

is a ghost statement. Nothing is recovered.

When we print said expression there is at least an output of the boolean.

The method will only return True if there are no non-alphabet characters present.

>>> "abcdEFGH".isalpha()
True
>>> "abcd EFGH".isalpha()
False
>>> 

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.