Re:Python Cheat Sheet
by TazeTSchnitzel on Tuesday September 04, 2012 @02:44PM
(#4475914)
Looks like it exists, and works (at least for strings):
Seems to be the equivalent of `in` on a string but with a count.
[ Parent
| on HN ]
It does exist for strings, but the list contains both `.count('string2')` and `.count(object1)`.
Re:Python Cheat Sheet
by TazeTSchnitzel on Tuesday September 04, 2012 @03:13PM
(#4476061)
It also works on lists, I think he got confused.