Which is the correct use of global variables in Python 3?:
1) Stating global VAR_NAME once in the core script (not within a function) and then simply referring to the variable as VAR_NAME everywhere else
2) Stating global VAR_NAME once within every function that uses the global variable and then simply referring to the variable as VAR_NAME for the rest of the function and within the core script itself
globalkeyword among beginners is almost always a sign of trying to program using some other language's mindset, and if you're reading some tutorial which encourages it you need to get a better one.