Answers for "python check if a char is number"

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 check if a char is number"

Python Answers by Framework

Browse Popular Code Answers by Language