python list python list python list are passed by referencea=b=[1,2,3]id(a)==id(b) returns truei.e they have same memory addressmodifying a also modifies b.to make copy list use copy() or new=old[:]