Tom_Jung

Untitled

Jan 29th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. from collections import Counter
  2. import random
  3.  
  4. num_list = [ ]
  5.  
  6. for i in range(11):
  7.  
  8. num_list.append(random.randint(1,50))
  9.  
  10. #print(num_list)
  11.  
  12. print(num_list)
  13. print(sorted(num_list))
  14.  
  15. item = Counter(num_list)
  16. print(item.most_common())
Advertisement
Add Comment
Please, Sign In to add comment