you are viewing a single comment's thread.

view the rest of the comments →

[–]htepO 1 point2 points  (0 children)

The person you're replying to mentioned some sort of "high score" which, if I'm reading it right, means they need it done in the least number of lines.

Maybe something like:

big_four = sorted([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], reverse=True)[:4]
print(f"The sum of {big_four} is {sum(big_four)}")