← back to unit
Easy
# sorting easy
The Triple Scoop
Build the ultimate sundae from the three most delicious flavors — deliciousness is measured in points, obviously. 🍨
You get at least three flavor scores. Print the total of the three highest.
Example:
Input: scores = [4, 9, 1, 7, 3]
Output: 20
Sorted biggest-first gives [9, 7, 4, 3, 1] — the top three (9 + 7 + 4) add up to 20.
💡 need a hint?
sort-triple-scoop.py🔒 given lines are locked — write your code in between
loading...