How to print pass arguments to code object via exec and print in python? Below are just few examples to see how things work in a generic case.
def foo(x, y):
return x * y
exec(foo.func_code {'x': 1, 'y': 5}) # This didn't work
def bar():
return 3*5
exec(bar.func_code) # this got executed but I couldn't print it?