# Example 8-6. Making a shallow copy of a list containing another list; copy and paste
# this code to see it animated at the Online Python Tutor

l1 = [3, [66, 55, 44], (7, 8, 9)]
l2 = list(l1)

l1.append(100)
l1[1].remove(55)
print("id l1 : ", id(l1))
print("id l2 : ", id(l2))
print('l1:', l1)
print('l2:', l2)
l2[1] += [33, 22] #
l2[2] += (10, 11) #
print('l1:', l1)
print('l2:', l2)