Created
January 30, 2015 00:41
-
-
Save NotTheEconomist/c9db644566545a1dd209 to your computer and use it in GitHub Desktop.
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
# this will read the file line by line | |
with open("path/to/file") as infile: | |
for line in infile: | |
do_something_to_the(line) | |
# this will see if a sequence adds up to 15 | |
sum(some_sequence) == 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment