← back to unit
Easy
# sorting easy
Top Three Treasures
The dragon's hoard is huge, but the museum only wants the three shiniest pieces. 💎
You get a list of at least three values. Print the three biggest, biggest first, comma-separated.
Example:
Input: values = [50, 12, 99, 34, 78]
Output: 99,78,50
Sorting biggest-first gives [99, 78, 50, 34, 12] — the first three are 99, 78, 50.
💡 need a hint?
sort-top-three.py🔒 given lines are locked — write your code in between
loading...