Skip to content

Instantly share code, notes, and snippets.

@zonble
Created August 31, 2011 16:59
Show Gist options
  • Save zonble/1184056 to your computer and use it in GitHub Desktop.
Save zonble/1184056 to your computer and use it in GitHub Desktop.
1
l = []
for i in range(0,1000):
if i % 3 == 0 or i % 5 == 0: l.append(i)
print sum(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment