Skip to content

Instantly share code, notes, and snippets.

@kalda341
Created January 19, 2015 23:49
Show Gist options
  • Save kalda341/9ee4f4e4dd6e1f5ef65f to your computer and use it in GitHub Desktop.
Save kalda341/9ee4f4e4dd6e1f5ef65f to your computer and use it in GitHub Desktop.
words = file.read().split()
for word in words:
try:
word_dict += 1
except EXCEPTION:
word_dict = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment