5/11 Why .isalpha()=true


I was wondering since the condition is if original.isalpha()=true
Why don't we need to specify it is = true.

is it default that .isalpha() means .isalpha() is true?

Thank you so much!


Hi, @webwhiz88928 ,

The isalpha() method returns either True or False. The name, true, beginning with lowercase, does not have any meaning in Python.

Assuming that original has been assigned a string, the expression original.isalpha(), has the same value as the expression original.isalpha() == True.