MCQ Single Best Answer Not Set

QWhat will be the output of the following statements?
x, y = 0, 1
while y < 10:
    print(y, end=' ')
    x, y = y, x + y

ID: #3515 Python While Loop MCQ 306 views
Question Info
#3515Q ID
Not SetDifficulty
Python While Loop MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1 1 2 3 5 8
  • B 112358
  • C 0123456789
  • D 0 2 4 6 8
Correct Answer: Option A

Explanation

1 1 2 3 5 8

Share This Question

Challenge a friend or share with your study group.