# File: scope2.py # # Changing the value of the parameter # x in inc() does not change the # value of n outside the function. # def inc(x): x = x + 1 return x n = 3 print(inc(n)) print("n =", n) ''' Output from the program: 4 n = 3 '''