KellyPoima
New member
What will be the output of the following Python code?
A. Syntax error
B. [[7], [7], [7]]
C. [[7], [], []]
D. [[],7, [], []]
Code:
a=[[]]*3
a[1].append(7)
print(a)
B. [[7], [7], [7]]
C. [[7], [], []]
D. [[],7, [], []]