fork download
  1. def add(x, y):
  2. return x + y
  3.  
  4. def g(x):
  5. u = my_func(x, 4 ** x)
  6. return my_func(u, u // 2)
  7.  
  8. g.__globals__['my_func'] = add
  9. print(eval('g(1)'))
Success #stdin #stdout 0.04s 9608KB
stdin
Standard input is empty
stdout
7