YouTip LogoYouTip

Att String Isalpha

# Python2.x Python isalpha() Method [![Image 3: Python Strings](#) Python Strings](#) * * * ## Description The Python isalpha() method checks whether all characters in the string are alphabetic. ## Syntax The syntax for the isalpha() method is: str.isalpha() ## Parameters * None. ## Return Value Returns True if all characters in the string are alphabetic and there is at least one character, otherwise returns False. ## Example The following examples demonstrate the use of the isalpha() method: ## Example #!/usr/bin/python # coding=utf-8 str="tutorial"; print str.isalpha(); str="tutorial"; print str.isalpha(); str="this is string example....wow!!!"; print str.isalpha(); The output of the above examples is as follows: TrueFalseFalse * * Python Strings](#)
← Att String IsdigitAtt String Isalnum β†’