Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nemetroid
on Sept 4, 2012
|
parent
|
context
|
favorite
| on:
Python Cheat Sheet
It does exist for strings, but the list contains both `.count('string2')` and `.count(object1)`.
TazeTSchnitzel
on Sept 4, 2012
[–]
It also works on lists, I think he got confused.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: