X = 99 # X and func assigned in module def func(Y): # Y and Z assigned in function Z = X + Y # X not assigned: global return Z func(1) # func in module: result=100