Re:Python Cheat Sheet
by nemetroid on Tuesday September 04, 2012 @03:10PM
(#4476047)
It does exist for strings, but the list contains both `.count('string2')` and `.count(object1)`.
[ Parent
| on HN ]
Re:Python Cheat Sheet
by TazeTSchnitzel on Tuesday September 04, 2012 @03:13PM
(#4476061)
It also works on lists, I think he got confused.