input_string = input("Please enter a sentence: ")
string_dictionary = {}
input_words = input_string.split()

for i in range(len(input_words)):
    letter = str(input_words[i])
    if letter in string_dictionary:
        string_dictionary[letter] += 1
    else:
        string_dictionary[letter] = 1

print(string_dictionary)


sort_dictionary = sorted(string_dictionary.items(), key=lambda x: x[1], reverse=True)
print("The top three words are:")
print(sort_dictionary[0])
print(sort_dictionary[1])
print(sort_dictionary[2])
420c4eec41931992caf56d7665920c231f74fdd7
<mask token>

<mask token>
for i in range(len(input_words)):
    letter = str(input_words[i])
    if letter in string_dictionary:
        string_dictionary[letter] += 1
    else:
        string_dictionary[letter] = 1
print(string_dictionary)
<mask token>
print('The top three words are:')
print(sort_dictionary[0])
print(sort_dictionary[1])
print(sort_dictionary[2])

input_string = input('Please enter a sentence: ')
string_dictionary = {}
input_words = input_string.split()
for i in range(len(input_words)):
    letter = str(input_words[i])
    if letter in string_dictionary:
        string_dictionary[letter] += 1
    else:
        string_dictionary[letter] = 1
print(string_dictionary)
sort_dictionary = sorted(string_dictionary.items(), key=lambda x: x[1],
    reverse=True)
print('The top three words are:')
print(sort_dictionary[0])
print(sort_dictionary[1])
print(sort_dictionary[2])

input_string = input("Please enter a sentence: ")
string_dictionary = {}
input_words = input_string.split()

for i in range(len(input_words)):
    letter = str(input_words[i])
    if letter in string_dictionary:
        string_dictionary[letter] += 1
    else:
        string_dictionary[letter] = 1

print(string_dictionary)


sort_dictionary = sorted(string_dictionary.items(), key=lambda x: x[1], reverse=True)
print("The top three words are:")
print(sort_dictionary[0])
print(sort_dictionary[1])
print(sort_dictionary[2])