Skip to content

Commit

Permalink
[Python] Challenge 2 (Unreviewed) (YearOfProgramming#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdx2 authored and Remillardj committed Jan 18, 2017
1 parent 1022957 commit c6de8e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions challenge_2/python/dfdx2/count.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from collections import Counter

print(Counter([2,3,4,2,3,5,4,6,4,6,9,10,9,8,7,8,10,7]).most_common()[:-2:-1])

print(Counter([2,'a','l',3,'l',4,'k',2,3,4,'a',6,'c',4,'m',6,'m','k',9,10,9,8,7,8,10,7]).most_common()[:-2:-1])

0 comments on commit c6de8e2

Please sign in to comment.