function that modifies a list passed in as an argument code example
Example 1: pass a list to a function in python
def someFunc(myList = [], *args):
for x in myList:
print x
Example 2: how to pass list in function with modified list
def ABC(li):
print(li)
l=[1,2,3]
ABC(l[:]+[6])