# Author: James Tam # Version: March 6, 2010 # An example that illustrates how a list variable is not actually a list but # instead it's a reference to a list. list1 = [1,2] list2 = [2,1] print (list1, list2) # Doesn't copy the elements of one list to another but instead we just make # list1 refer to the list that's referred to by list2. list1 = list2 print (list1, list2) list2[0] = 66 print (list1, list2)