Lists - AP Computer Science Principles

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What operation does list.clear() perform?

Tap to reveal answer

Answer

Removes all elements from the list. Empties the list completely, leaving it with zero elements.

← Didn't Know|Knew It →