Skip to main content
🔮 Output PredictionPY Python Hard⚡+35 XP

Generator Expression

What is the output?

Python
gen = (x**2 for x in range(3))
print(next(gen))
print(next(gen))

🔮 What is the output?