Bug with python mode

  • In short we can read from existing global variables within a function.
  • But once we need to write a value to them, 1st we’ve gotta declare them via keyword global.
  • Otherwise Python will treat them as local variables, temporarily overshadowing their corresponding global versions within that function.
5 Likes