Skip to content

Instantly share code, notes, and snippets.

@royletron
Last active December 15, 2015 00:58
Show Gist options
  • Save royletron/5176172 to your computer and use it in GitHub Desktop.
Save royletron/5176172 to your computer and use it in GitHub Desktop.
Arrays total
from array import *
a = array('i', [20, 18, 23, 43])
b = 0
for i in a:
b += i
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment