Skip to content

Instantly share code, notes, and snippets.

@vmorris
Created July 6, 2019 01:44
Show Gist options
  • Save vmorris/b88950d4a01ec490446f80cb83191a61 to your computer and use it in GitHub Desktop.
Save vmorris/b88950d4a01ec490446f80cb83191a61 to your computer and use it in GitHub Desktop.
from itertools import accumulate
from operator import mul
integers = list(range(1, 1000001))
a = accumulate(integers, mul)
for i in a:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment