I'm having a problem:
I mention:
I want to present the count number of each word in the following input that contains the following text:
"This is one number and is a good number"
The output that I would like to have, with the word count found inside the file.txt should be the following:
{'This': 1, 'is': 2, one': 1, 'number': 2, 'and': 1, 'a': 1, 'good': 1}
How can I put a "sorted" to sort the situation, instead of staying in descending order?
Someone can help me?
Thanks for listening!