How does python pass keyword changes values in list : I have one small code in python. I have created list and I am passing it as function parameter. According to me it should give output as 1 2 3 4 5. But it is giving me 5 2 3 4 5  as output. If I am just writing 'pass' keyword inside for loop then it should not do anything.Then why is that changing my output? Please help me out.

Here is my code:

def fun1(list1):
    for list1[0] in list1: 
        pass
list2=[1,2,3,4,5]
fun1(list2)
print(list2)
