# global scopeX = 99 # X and func assigned in module: global def func(Y): # Y and Z assigned in function: locals # local scope Z = X + Y # X is not assigned, so it's a global return Zfunc(1) # func in module: result=100
Name (required)
email (will not be published) (required)
Website