Skip to content

Instantly share code, notes, and snippets.

@octoparse
Created April 16, 2019 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octoparse/5c610d2b63012b459db62febab8f997e to your computer and use it in GitHub Desktop.
Save octoparse/5c610d2b63012b459db62febab8f997e to your computer and use it in GitHub Desktop.
for word in word_list:
# count all words frequency
if word in word_count_dict.keys():
word_count_dict[word] += 1
else:
word_count_dict[word] = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment