Skip to content

Instantly share code, notes, and snippets.

@benrules2
Created January 5, 2017 23:13
Show Gist options
  • Select an option

  • Save benrules2/36f725642d52ca36c3a3995c2870a20c to your computer and use it in GitHub Desktop.

Select an option

Save benrules2/36f725642d52ca36c3a3995c2870a20c to your computer and use it in GitHub Desktop.
Read input file
def read_file(filename):
with open(filename, "r") as file:
contents = file.read().replace('\n\n',' ')
return contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment