Single Choice Not Set

QWhat will be the output after the following statements?
 
x = y = 1
while x < 4:
    x += 1
    while y < 3:
        print(y, end=' ')
        y += 1

ID: #3517 Python While Loop MCQ 862 views
Question Info
#3517Q 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 2
  • B 1 2
  • C 1 2 3 4
  • D 1 2 1 2 1 2
Correct Answer

Explanation

1 2

Share This Question

Challenge a friend or share with your study group.