fork download
  1. import sys
  2.  
  3. for linha in sys.stdin:
  4. linha = linha.rstrip("\n") # outro modo de retirar a quebra de linha
  5. if not linha.isdigit():
  6. print (linha, end = "\n")
Success #stdin #stdout 0.02s 8696KB
stdin
Ana
Bruno
123
10
Foo
stdout
Ana
Bruno
Foo