Beginner
Python
Q18 / 101
What does the range(5) function produce?
Correct! Well done.
Incorrect.
The correct answer is C) A range object representing 0 to 4
C
Correct Answer
A range object representing 0 to 4
Explanation
range(5) generates numbers 0 through 4 (5 exclusive). It returns a lazy range object, not a list.
Progress
18/101