← Quiz: Python Loops: all 13 questions
Quiz: Python Loops · Question 8 of 13
What is list(range(5, 0, -2))?
What is list(range(5, 0, -2))?
- A.[5, 3, 1]
- B.[5, 3, 1, -1]
- C.[1, 3, 5]
- D.[]
Answer & explanation
Correct answer: [5, 3, 1]
Counting down by 2, stopping before 0.
Can you get the rest right without peeking?
Take the timed Quiz: Python Loops quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →