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