Practice
Learn
← Quit
0 / 0 correct
Python
Medium
1 of 40
What does this print?
def add(x, items=[]): items.append(x) return items add(1) print(add(2))
A
[1]
B
TypeError
C
[1, 2]
D
[2]