I thought this would print 3, but it prints 1:
# Python3
def f():
a = 1
exec("a = 3")
print(a)
f()
# 1 Expected 3
I thought this would print 3, but it prints 1:
# Python3
def f():
a = 1
exec("a = 3")
print(a)
f()
# 1 Expected 3