checking for number entry using isdigit python code example Example: isdigit python s='12' s.isdigit()#returns True