Created
February 14, 2014 06:58
-
-
Save ruliarmando/8996859 to your computer and use it in GitHub Desktop.
reading file into list
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
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