Created
May 3, 2012 23:21
-
-
Save yuheiomori/2590361 to your computer and use it in GitHub Desktop.
CodeEval Sum Of Integers From File
This file contains hidden or 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 | |
if __name__ == '__main__': | |
test_cases = open(sys.argv[1], 'r') | |
print sum(int(line.rstrip())for line in test_cases) | |
test_cases.close() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment