.isdigit with empty stringpyhton w3 code example Example: isdigit python s='12' s.isdigit()#returns True