Day 1

A Word Frequency Searcher in Python

Try it!

You may need to wait or refresh to let it load


Refresh the page to try again!


View the source code


input_text = input("Enter a string: ")
results = {}
words = input_text.split()
for word in words:
    results[word] = results.get(word,0)+1
print(results)

Description


I found this project quite similar to a tokenizer or at least some basic tokenizer courses which guided my thought. This program took me about 10 minutes, hopefully other projects are more difficult!

Next Day