fork download
  1. def verifica_digito(caractere):
  2. digito = ord(caractere)
  3. return 48 <= digito <= 57
  4.  
  5. print(verifica_digito(input()))
  6.  
  7. #https://pt.stackoverflow.com/q/469660/101
Success #stdin #stdout 0.02s 9228KB
stdin
9
stdout
True