Q. What does range(3) produce?
Solution:
range(3) produces [0, 1, 2], a sequence starting at 0 up to but not including 3.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
range(3) produces [0, 1, 2], a sequence starting at 0 up to but not including 3.
Strengthen Your Practice with our comprehensive question bank.