Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from collections import Counter
  2. from pprint import pprint
  3.  
  4. c = Counter()
  5.  
  6. def test(c):
  7.     c.clear()
  8.     for i in range(10):
  9.         c[i] += 1
  10.     pprint(c)
  11.  
  12. test(c)
  13. test(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement