Answers for "how do i check if a character is neither a letter nor a digit in python?"

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 "how do i check if a character is neither a letter nor a digit in python?"

Python Answers by Framework

Browse Popular Code Answers by Language