What does this program print?

from Generators and iterators
Python 3.14 beginner 2 min

What does this program print?

Python
squares = (number * number for number in range(3))

print(next(squares))
print(list(squares))
print(list(squares))
Open in playground
Report an error