0

When I try to update a specific list in a list of lists, all the lists are updated. Can someone explain how instead only a specific list can be updated?

a = [[]]*55 
a[0].append(5)
Andrew
  • 281
  • 3
  • 15

0 Answers0