Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 190 Bytes

three_biggest_items.md

File metadata and controls

16 lines (11 loc) · 190 Bytes

Three Biggest Items

  1. Print three biggest items of a list

Solution

sorted(some_list, reverse=True)[:3]

Or

some_list.sort(reverse=True)
some_list[:3]