Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythongenerators and yieldSingle-choice MCQ3 views

What does this code print on two lines?

g = (x for x in range(3))\nprint(next(g))\nprint(next(g))