Python Dictionary


#1

Can anyone go through the steps of how to create a dictionary that will store each word as well as the number of times it occurs in a sentence


#2

this already exist:

https://docs.python.org/2/library/collections.html#collections.Counter

so you can just use this, otherwise you will need to design your own

we could help you with specific steps, but you will need to implement the solution.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.