Create a global variable m = "test"
m = "test"
create a function that
def func():
m = 'yes'
return m
Run that function and save the return to a variable n.
n = func()
print out m an n
print(m,n)
test yes
create a function that
def func2():
global m
m = 'yes'
return m
Run the new function and save the result to a variable w.
w = func2()
print out m and w
print(m,w)
yes yes