<filename>Chapter07/variable_scope1.py
def func(): 
   a =12 
   print "a inside the function is the local variable",a 
func() 
print "Trying to access the local variable outside the function.",a
<filename>Chapter07/variable_scope1.py
def func(): 
   a =12 
   print "a inside the function is the local variable",a 
func() 
print "Trying to access the local variable outside the function.",a