If you declare a global variable before a function and try to change that variables in a function it throws back an error:
james = 100
def runthis():
james += 5
This wont work.
Unless you declare the global variables again in the function, like this:
james = 100
def runthis():
global james
james += 5
Is there a more simple way to change the variable inside the function? It's sort of messy and annoying re-declaring variables again and again.