I am currently attempting to run a Python code that has this basic structure:
    var = 0
    def Function2():
        if var == 1:
            ...   
    def Function():
        var = 1
        Function2()
However, when it runs, it doesn't recognize the global variable. Is there any way to fix this?
 
     
    