python check if string is not digit code example Example: isdigit python s='12' s.isdigit()#returns True