Answers for "str.isalpha python"

3

isaplha in python

str = "abc"
print(str.isalpha())
Posted by: Guest on May-01-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