Exercise: Scope

Create a global variable m = "test"

create a function that

  1. has a local variable m having a value of "yes"
  2. return m

Run that function and save the return to a variable n.

print out m an n

create a function that

  1. changes the global variable m to "yes"
  2. return m

Run the new function and save the result to a variable w.

print out m and w