Q1
What does the Python 'range()' function return?
easyView Answer & ExplanationHide Answer & Explanation
Correct Answer: An immutable sequence of numbers that can be iterated over, generated lazily
Explanation:
range() does not create the full list of numbers in memory all at once. Instead it produces values one at a time as they are needed, which makes it memory efficient for large ranges.