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


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

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