<Apti
Code
/>
Back
Question 412: What will be the output of the following code?for i in range(3): print(i)
tcs
wipro
infosys
general
aptitude
loops
Therange(3)generates values 0, 1, and 2, and theforloop iterates over these values, printing them.
0
1
2
0 1 2
Submit Answer
Show Answer
Previous
Next