fork download
  1. def func1():
  2. print('blahblah')
  3. return func2()
  4.  
  5. first, second, third = None, None, None
  6.  
  7. def func2():
  8. check = 0
  9. while check < 1:
  10.  
  11. first = input('Integer or pass ')
  12. if first == 'pass':
  13. first = 0
  14. return func1()
  15. else:
  16. first = int(first)
  17.  
  18. second = input('Integer or pass')
  19. if second == 'pass':
  20. second = 0
  21. return func1()
  22. else:
  23. second = int(second)
  24.  
  25. third = input('Integer or pass' )
  26. if third == 'pass':
  27. third = 0
  28. return func1()
  29. else:
  30. third = int(third)
  31. check = 1
  32. return first, second, third
  33.  
  34. print func1()
  35.  
Runtime error #stdin #stdout #stderr 0s 9032KB
stdin
Standard input is empty
stdout
blahblah
Integer or pass 
stderr
Traceback (most recent call last):
  File "prog.py", line 34, in <module>
  File "prog.py", line 3, in func1
  File "prog.py", line 11, in func2
EOFError: EOF when reading a line