- print is a function and should get surrounding parenthesis
- xrange is now range and range no longer exists
Code: Select all
print(sum([x * (x - 1) for x in [y * y for y in range(3,11)]]))
Code: Select all
print(sum([x * (x - 1) for x in [y * y for y in range(3,11)]]))