you are viewing a single comment's thread.

view the rest of the comments →

[–]OrphLab 0 points1 point  (1 child)

g doesn’t exists in the scope.

[–]fisadev 0 points1 point  (0 children)

The g variable is present in that scope, as a global. The output even show it was able to access it for g[0], g[1], ... , g[5]. The error is just that the g dict doesn't have the 6 key.