nerdexam
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)
  • A
    2% (1)
  • B
    4% (2)
  • C
    11% (5)
  • D
    82% (37)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice