You have to use the count method to do this:
statement="how many have I use how many and how"
To count the number of appearances:
from collections ...READ MORE
for c in "string":
You can use word.find('o') as well to ...READ MORE
You can use split() using space as ...READ MORE
You can also use the random library's ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
Python strings are immutable, you change them ...READ MORE
>>> print len(mylist)
Already have an account? Sign in.