Given a phrase, count the occurrences of each word in that phrase.
For example for the input "olly olly in come free"
olly: 2
in: 1
come: 1
free: 1
Note that, when trying to submit an exercise, make sure the solution is in the exercism/python/<exerciseName>
directory.
For example, if you're submitting bob.py
for the Bob exercise, the submit command would be something like exercism submit <path_to_exercism_dir>/python/bob/bob.py
.
For more detailed information about running tests, code style and linting, please see the help page.
This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour.
It's possible to submit an incomplete solution so you can see how others have completed the exercise.