counter to dictonary python

Solutions on MaxInterview for counter to dictonary python by the best coders in the world

showing results for - "counter to dictonary python"
Leonardo
26 Apr 2016
1>>> c = Counter(word1=4, word2=3)
2>>> c
3Counter({'word1': 4, 'word2': 3})
4>>> dict(c)
5{'word1': 4, 'word2': 3}
6