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