How does exec work with locals?
I thought this would print 3, but it prints 1:
I thought this would print 3, but it prints 1:
I want to use a bunch of local variables defined in a function, outside of the function. So I am passing x=locals() in the return value.