Skip to content
RED SAG Skills
mediumStudy question · answer published in Python interview questions, so no pointspythonpython-basics

Copying a list of lists

What does print(a) show?

a = [[1, 2], [3]]
b = a.copy()
b[0].append(9)
b.append([4])
print(a)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions