while True: try: val = int(input('prompt')) break except ValueError: print('poshel nahui')print(val)
Standard input is empty
prompt
Traceback (most recent call last): File "./prog.py", line 3, in <module> EOFError: EOF when reading a line
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!