Quiz Python 5. Loops

Don't have a Resume?




Question :

What will be displayed when the following code is executed?

    number = 6
    while number > 0:
        number -= 3
        print(number, end = ' ')

  1. 6 3 0
  2. 6 3
  3. 3 0
  4. 3 0 -3
Answer : Option 3