Question Detail
Question
What does the
range() function return in Python, by default?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 78 explains: 'The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and ends at a specified number.'
Hint
Think about how
for loops often generate a sequence of numbers for iteration.