Loading…
Compute the sum of the squares of 1..1000 using a list comprehension. Then print one line: LCSUM: followed by the sum (the sum of squares of 1..1000 is 333833500), e.g. print("LCSUM:", total).
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.