Python_Institute
PCEP-30-02 · Question #17
How many elements does the L list contain? ``python 1 L = [i for i in range(-1, -2)] ``
The correct answer is D. zero. See the full explanation below for the reasoning.
Question
How many elements does the L list contain?
1 L = [i for i in range(-1, -2)]
Options
- Aone
- Btwo
- Cthree
- Dzero
How the community answered
(45 responses)- A2% (1)
- B4% (2)
- C11% (5)
- D82% (37)
Community Discussion
No community discussion yet for this question.