how to alphabetize the words after split them and count how may times each one repested in python code example
Example: how to find 2 similar words in atext python
words = sentence.split()
counts = {}
for word in words:
if word not in counts:
counts[word] = 0
counts[word] += 1