fork download
  1. import sys
  2.  
  3. def is_number(s):
  4. try:
  5. float(s)
  6. return True
  7. except ValueError:
  8. pass
  9.  
  10. for linha in sys.stdin:
  11. linha = linha.rstrip("\n")
  12. if not is_number(linha):
  13. print linha
Success #stdin #stdout 0s 7740KB
stdin
Ana
Bruno
123
10
Baz
stdout
Ana
Bruno
Baz