
#####################   List implementation with "+= " operator   ##################################

List_1=[1,2,3]           #list with 3 elements

List_2 = List_1          # passing the reference of List_1 into List_2

List_2+=[4,5]            # Adding extra elemnts in List_2 with the help of += operator

print(List_1)            # List_1 gets updated automatically
print(List_2)
print("Note: List_1 and List_2 both have same updated value")
#####################   List implementation with "+= " operator    ###################################

List_3=[1,2,3]           #list with 3 elements

List_4=List_3            # passing the reference of List_3 into List_4

List_4=List_4+[4,5]      # Adding extra elemnts in List_4 with the help of + and = operator

print(List_3)            # List_3 is not updated here
print(List_4)
print("Note: List_3 and List_4  have different value")