# File: scope4.py # # This time we avoided the error # but n is still local, so the # value of n outside inc() # remains unchanged. # def inc(x): n = x + 1 return n n = 3 print(inc(n)) print("n = ", n) ''' Output from the program: 4 n = 3 '''