Q. What is the output of for i in range(1, 4): print(i)?
Solution:
range(1, 4) iterates over 1, 2, 3, printing each on a new line.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
range(1, 4) iterates over 1, 2, 3, printing each on a new line.
Strengthen Your Practice with our comprehensive question bank.