[Solved] How can you reset variables to their original value in python?

[ad_1]

To change a global variable, you have to declare them global or they will be considered a local variable. Example:

lives = 6

def change():
    global lives
    lives = 0

1

[ad_2]

solved How can you reset variables to their original value in python?