Answers for "python how to tell if something is a char or digit"

2

python check if character is letter

>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
Posted by: Guest on October-19-2020
1

test if character is number python string

>>> 'A'.isdigit()
False
>>> '1'.isdigit()
True
Posted by: Guest on October-19-2020

Code answers related to "python how to tell if something is a char or digit"

Python Answers by Framework

Browse Popular Code Answers by Language