Copy vs Assignment
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.What is the difference between b = a and c = a.copy()? What does this print?
a = [1, 2, 3]
b = a
c = a.copy()
a.append(4)
print(b)
print(c)