Question 11
Back to Exercise
After first, *rest = (1, 2, 3), what is rest?
- A (2, 3) – a tuple
- B 2
- C [2, 3] – a list Correct
- D [1, 2, 3]
Correct Answer: Option C
A starred name always collects into a list, whatever was unpacked.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!