how to compare in python insde a function wqith a global var code example
Example 1: global variable python
a = 0
def testFor():
global a
if(a == 0):
#run code
Example 2: how to declare global variable in python
global n
n = 'whatever'