import sysdef silly_age_joke(): print('Сколько вам лет?') age = int(sys.stdin.readline()) if age >= 10 and age <= 13: print('13 + 49 + 84 + 155 + 97: что получится? Головная боль!') else: print('Что-что?')silly_age_joke()
Standard input is empty
Сколько вам лет?
Traceback (most recent call last): File "./prog.py", line 9, in <module> File "./prog.py", line 4, in silly_age_joke ValueError: invalid literal for int() with base 10: ''
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!