β back to unit
Easy
# sorting easy
Biggest First
The trophy shelf shows off the biggest wins on top. π
You get a list of nums. Sort it from biggest to smallest and print comma-separated. There's a magic word for backwards...
Example:
Input: nums = [12, 45, 7, 30]
Output: 45,30,12,7
sorted(nums, reverse=True) sorts from biggest to smallest.
π‘ need a hint?
sort-biggest-first.pyπ given lines are locked β write your code in between
loading...