edit list in funciton without affeticing origianl list code example
Example: how to pass list in function with modified list
def ABC(li):
print(li)
l=[1,2,3]
ABC(l[:]+[6])
def ABC(li):
print(li)
l=[1,2,3]
ABC(l[:]+[6])