fork download
  1. def a(b, x, y):
  2. if b:
  3. return x[0](*x[1:])
  4. else:
  5. return y[0](*y[1:])
  6.  
  7. def f(a):
  8. print(a)
  9.  
  10. def g(a):
  11. print(a*2)
  12.  
  13. a(True, [f, 1], [g, 1])
Success #stdin #stdout 0.02s 9120KB
stdin
Standard input is empty
stdout
1