Computer Science
What is the output when this code executes ?
x = 1
while (x <= 5):
x + 1
print(x)
- 6
- 1
- 4
- 5
- no output
Python Control Flow
14 Likes
Answer
no output
Answered By
3 Likes
Related Questions
Consider the following code segment :
for i in range(2, 4): print(i)What values(s) are printed when it executes?
When the following code runs, how many times is the line "x = x * 2" executed?
x = 1 while ( x < 20 ): x = x * 2How many times does the following code execute ?
x = 1 while (x <= 5): x + 1 print (x)What is the output produced when this code executes?
i = 1 while (i <= 7): i*= 2 print (i)