I have this code here. The only part I can add code to is in main_____ AFTER the 'i=1' line. This script will be executing multiple times and will have some variable (might not be 'i', could be 'xy', 'var', anything), incrementing by 1 each time. I have gotten this to work by declaring 'i' as global above the method, but unfortunately, I can't keep it that way.
Is there a way in which I can make 'i' function as a global variable within the above-mentioned parameters?
def main______():
try:
i+=1
except NameError:
i=1
main______()