Not needed.
If you define a variable as global within a function, it won't lose its value when the function ends, so they still have their old value, the next time the function is called.
If you define a variable as global within a function, it won't lose its value when the function ends, so they still have their old value, the next time the function is called.