fork download
  1. def func1():
  2. print('Function 1')
  3.  
  4. def func2():
  5. print('Function 2')
  6.  
  7. for i in range(2):
  8. function = globals()['func' + str(i + 1)]
  9. function()
  10.  
Success #stdin #stdout #stderr 0.03s 42016KB
stdin
Standard input is empty
stdout
Function 1
Function 2
stderr
Warning: cannot find your CPU L2 cache size in /proc/cpuinfo