Answers for "isalpha in python 3"

3

isaplha in python

str = "abc"
print(str.isalpha())
Posted by: Guest on May-01-2020
5

what does isalpha do in python

The isalpha() method returns True if all the characters are alphabet letters (a-z).
Posted by: Guest on December-10-2020
0

Python String isalpha()

# Valid alphabet
text1= "HelloWorld"
print(text1.isalpha())

# contains whitespace
text2 = "Hello World"
print(text2.isalpha())

# contains Special Character
text3 = "HelloWorld!!"
print(text3.isalpha())


# contains Alphanumeric
text3 = "Hello123"
print(text3.isalpha())
Posted by: Guest on September-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language