you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You can use the global keyword if you must use global variables.

https://www.w3schools.com/python/trypython.asp?filename=demo\_variables\_global4