Single Choice
Not Set
QWhat will be the output after the following statements?
def gen():
x = 0
while True:
yield x
x += 1
y = gen()
print(next(y), end='')
print(next(y), end='')
print(next(y), end='')
ID: #3553
Python Generators MCQ
610 views
Question Info
#3553Q ID
Not SetDifficulty
Python Generators MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
012
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic