liste=['a','b','c']
for x in liste :
liste_bis=['a','b','c']
liste_bis.remove(x)
print(liste_bis)
print(liste)
print(" ")
for x in liste :
liste_bis=liste
liste_bis.remove(x)
print(liste_bis)
print(liste)
I really don't understand what is the difference between these loops. The first one does not change liste (only liste_bis) while the second one changes liste (and I never wanted that). Can someone explain to me why?