Computer Science

Consider the following code segment :

for i in range(2, 4):
    print(i)

What values(s) are printed when it executes?

  1. 2
  2. 3
  3. 2 and 3
  4. 3 and 4
  5. 2, 3 and 4

Python Control Flow

10 Likes

Answer

2 and 3

Answered By

2 Likes


Related Questions