fork(2) download
  1. import sys
  2. def silly_age_joke():
  3. print('Сколько вам лет?')
  4. age = int(sys.stdin.readline())
  5. if age >= 10 and age <= 13:
  6. print('13 + 49 + 84 + 155 + 97: что получится? Головная боль!')
  7. else:
  8. print('Что-что?')
  9. silly_age_joke()
  10.  
Runtime error #stdin #stdout #stderr 0.02s 27720KB
stdin
Standard input is empty
stdout
Сколько вам лет?
stderr
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: ''