I have assigned values for variables like this. It's worked nice.
In [16]: var1 = var2 = 5
In [17]: var1 = 2
In [18]: var2
Out[18]: 5
In [19]: var1
Out[19]: 2
Same operations done with list.
In [20]: list1 = list2 = []
In [21]: list1.append(5)
In [22]: list1
Out[22]: [5]
In [23]: list2
Out[23]: [5]
Same method i initialized two lists. After insert value in list1 but it's effect the value of list2. How it's happening. I wonder why it's happening like this. Anyone please explain.
Thanks