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