Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

check if digit or alphabet

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

# For digit
>>> '1'.isdigit()
True
>>> '1'.isalpha()
False
Comment

PREVIOUS NEXT
Code Example
Python :: Math Module log10() Function in python 
Python :: python list of size 
Python :: how to run python in atom 
Python :: python if not null 
Python :: how print array in python with clean dublication 
Python :: download maptolib 
Python :: if start and end point is same in range function python 
Python :: python minecraft server python gui 
Python :: plotly scatter facet change labels 
Python :: how to convert a string to a list python 
Python :: intersection of two lists using set method 
Python :: format timedelta python 
Python :: python check if attribute exists in dictionary 
Python :: where to put capybara default wait time 
Python :: Get percentage of missing values pyspark all columns 
Python :: python wrapper function 
Python :: python vs java 
Python :: how to fit the whole text beside checkbox in ipywidgets 
Python :: python get object parameters 
Python :: Code Example of Hashmap in Python 
Python :: python change version 
Python :: python slice last 2 items of list 
Python :: 2 plater die game in python 
Python :: how to uninstall python-dotenv 
Python :: check for changed model fields in djnago signal 
Python :: generate a random np image array with shape 
Python :: confusion matrix code 
Python :: how to make a pattern in python in one line 
Python :: python create zip file 
Python :: dataframe rolling first eleemnt 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =