Skip to content

Instantly share code, notes, and snippets.

@tinkerstudent
Last active July 10, 2016 20:57
Show Gist options
  • Save tinkerstudent/62dc0e7b2eda29c0220c9aa9aee55b30 to your computer and use it in GitHub Desktop.
Save tinkerstudent/62dc0e7b2eda29c0220c9aa9aee55b30 to your computer and use it in GitHub Desktop.
l = [1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1]
sum = 0
for n in l:
sum = sum + n
print "sum", sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment