-
-
Save codecademydev/6fd90d4a0ecd4ab91cd9a0cfc07dda68 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def frequency_dictionary(words): | |
frequency = {} | |
for word in words: | |
frequency[word] = words.count(word) | |
return frequency |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment