Skip to content

Instantly share code, notes, and snippets.

@ruliarmando
Created February 14, 2014 06:58
Show Gist options
  • Save ruliarmando/8996859 to your computer and use it in GitHub Desktop.
Save ruliarmando/8996859 to your computer and use it in GitHub Desktop.
reading file into list
import sys
with open(sys.argv[1]) as the_file:
websites = [line.rstrip('\n') for line in the_file]
print websites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment