Skip to content

Instantly share code, notes, and snippets.

@yuheiomori
Created May 3, 2012 23:21
Show Gist options
  • Save yuheiomori/2590361 to your computer and use it in GitHub Desktop.
Save yuheiomori/2590361 to your computer and use it in GitHub Desktop.
CodeEval Sum Of Integers From File
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