Skip to content

Instantly share code, notes, and snippets.

@shreyansh26
Created February 27, 2018 07:45
Show Gist options
  • Save shreyansh26/907d53ddd7a9b8b12c0e36ac4afef320 to your computer and use it in GitHub Desktop.
Save shreyansh26/907d53ddd7a9b8b12c0e36ac4afef320 to your computer and use it in GitHub Desktop.
f = open('tempSum2', 'r')
sum = 0
for l in f:
if not l.strip():
continue
sum += int(l.strip())
print(sum)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment