Exercise: Sum of squares with a generator expression

Pass a generator expression directly into sum() to add up i * i for i in range(5). No intermediate list needed.
Python
Setting up Python environment...
Output