human
I am working on the file "Lecture4.ipynb".
The first task is:
What about global variables?
Can you write Python program for it?
assistant
#Here about global variables.

x = 4
def outer(): 
    global x
    x = 1
    def inner(): 
        global x
        x = 2
        print 'Inner x=%d'%(x)
    inner()
    return x

print 'Outer x=%d'%outer()
print 'Global x=%d'%x