fork download
  1. while True:
  2. try:
  3. val = int(input('prompt'))
  4. break
  5. except ValueError:
  6. print('poshel nahui')
  7. print(val)
Runtime error #stdin #stdout #stderr 0.14s 23500KB
stdin
Standard input is empty
stdout
prompt
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
EOFError: EOF when reading a line