100 def parent 200 print parent- def child global print child- child p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
x = 100
def parent():
x = 200
print 'parent-',x
def child():
global x
x+=1
print 'child-',x
child()
print 'parent-',x
print '<module>',x
parent()
print '<module>',x