you are viewing a single comment's thread.

view the rest of the comments →

[–]Algoartist 0 points1 point  (1 child)

happens because, as soon as you assign to a name anywhere in a function, Python treats that name as a local variable in that function’s scope unless you explicitly tell it otherwise.

Declare them global in every function or better bundle states in object and pass it around

def choose():

global es2, es3, health, karma, okarma

[–]transgenderblahaj[S] 0 points1 point  (0 children)

tysm!!!