xxxxxxxxxx
count = {} # Create an empty dictionary
# Ask the user to input the words
line = input('Please enter a line of words: ')
# Now split the words from spaces inbetween
words = line.split()
print(words)
# Now count using a for loop, a dictionary and get
for word in words:
count[word] = count.get(word, 0) +1
print(count)