
# https://www.globalsino.com/ICs/
# Script with "passing variable between functions" and local "x= 0"
# Result: x is reset to 0 in the function

m = 10

for i in range(m):
    def u_func():
        x= 0
        if i > 3:
            x = x+1
        return x
    def v_func():
        x = u_func()
        print(x)

    v_func()
    
        
            
            
        
