Skip to content
RED SAGSkills
medium10 pts · first answer countspythonpython-basics

Summing a generator twice

What are the two printed values?

squares = (x * x for x in range(4))
print(sum(squares))
print(sum(squares))
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions