What will be the output of the following code: 'for i in range(3): print(i)'?

Practice Questions

Q1
What will be the output of the following code: 'for i in range(3): print(i)'?
  1. 0 1 2
  2. 1 2 3
  3. 0 1 2 3
  4. 3

Questions & Step-by-Step Solutions

What will be the output of the following code: 'for i in range(3): print(i)'?
No concepts available.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely