Computer Science
Consider the following code segment :
for i in range(2, 4):
print(i)
What values(s) are printed when it executes?
- 2
- 3
- 2 and 3
- 3 and 4
- 2, 3 and 4
Related Questions
The else statement can be a part of .......... statement in Python.
Which of the following are jump statements ?
When the following code runs, how many times is the line "x = x * 2" executed?
x = 1 while ( x < 20 ): x = x * 2What is the output when this code executes ?
x = 1 while (x <= 5): x + 1 print(x)