Some days back, I was just digging deep into python lists and i found some thing really interesting and confusing at the same time. ”I will make you confusing too” . Chalooo, Let’s start !….
Before going into weird lists, let’s have some basics on ‘=’ operator that works as a alias operator on lists and on more data types. If i say list1 = list2, both lists are pointing to same memory address of the mutable list object. GOT IT ? …. Nooo ? Look Below !