fork download
  1. from sys import stdin
  2.  
  3. for line in stdin:
  4. n = int(line)
  5. if n == 42:
  6. break
  7. print(n)# your code goes here
Success #stdin #stdout 0.02s 9048KB
stdin
Standard input is empty
stdout
Standard output is empty