Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if digit or alphabet

# For alphabet
>>> 'A'.isdigit()
False
>>> 'A'.isalpha()
True

# For digit
>>> '1'.isdigit()
True
>>> '1'.isalpha()
False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #digit #alphabet
ADD COMMENT
Topic
Name
4+6 =