SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> from collections import Counter
  2. >>> myList = [1,1,2,3,4,5,3,2,3,4,2,1,2,3]
  3. >>> print(Counter(myList))
  4. Counter({2: 4, 3: 4, 1: 3, 4: 2, 5: 1})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top