Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. >>> def top_three(list):
  2. list = [2,3,5,6,8,4,2,1]
  3. input_list = sorted(list, reverse=True)
  4. return input_list[:3]
  5.  
  6. >>> top_three
  7. <function top_three at 0x00D030C0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement