Quiz Python 5. Loops

Don't have a Resume?




Question :

What is the output of the following code?

x = 0
while x < 4:
    x = x + 1

print("x is", x)

  1. x is 1
  2. x is 2
  3. x is 3
  4. x is 4
Answer : Option 4