# The value of l1 changes outside the function
>>> def append_list(l1,n):
... l1.append(n)
... print('Value of list in the function = ',l1)
... return
...
>>> l1 = [1,2,3,4]
>>> n = 5
>>> print('Value of list before the fucntion is called = ',l1)
Value of list before the fucntion is called = [1,2,3,4]
>>> append_list(l1,n)
Value of list in the function = [1,2,3,4,5]
>>> print('Value of list after the function is called = ',l1)
Value of list after the function is called = [1,2,3,4,5]