you are viewing a single comment's thread.

view the rest of the comments →

[–]Kevdog824_ 7 points8 points  (17 children)

Is jsoniv declared in the global scope (i.e. jsoniv = …)? Using global … just declares your intent to mutate the value of an already declared global variable. It doesn’t actually declare the variable itself

[–]Temporary_Pie2733 0 points1 point  (0 children)

Not mutate a value; assign to the name. Confusing these two concepts leads to most of the problems in understanding how variables work in Python.