fork download
  1. def f1():
  2. print('f1')
  3.  
  4. def f2():
  5. print('f2')
  6.  
  7. def f3():
  8. print('f3')
  9.  
  10. def run_all(value, *args):
  11. if value == 'run f3':
  12. args[2]()
  13. else:
  14. args[0]()
  15. args[1]()
  16.  
  17. run_all('run f3', f1, f2, f3)
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
f3