I would like to assemble a function that allows me to create a dictionary from a given string or even text file.
For example:
statement = "tell me what you want what you really really want"
I want the end result to look like this:
{tell: 1, me:1, what: 2, you: 2, want: 2, really: 2}
The characters in the string are the keys, while the number of times it appears is the value.