isalpha()
« All String methods
my_str.isalpha())
Returns True
if all chars are alphabets in a string, Otherwise False
is returned.
my_str='plus2net'
print(my_str.isalpha()) # Output is False
my_str='Welcome'
print(my_str.isalpha()) # Output is True
my_str='#1234'
print(my_str.isalpha()) # Output is False
my_str='12.34'
print(my_str.isalpha()) # Output is False
« All String methods
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com