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
Next Day