How to get item count from list in python?
Posted
by user288832
on Stack Overflow
See other posts from Stack Overflow
or by user288832
Published on 2010-03-08T14:19:33Z
Indexed on
2010/03/08
14:21 UTC
Read the original article
Hit count: 105
python
['a','a','b','c','c','c']
to
[2, 2, 1, 3, 3, 3]
and
{'a': 2, 'c': 3, 'b': 1}
© Stack Overflow or respective owner