Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created August 27, 2021 23:11
Show Gist options
  • Save calthoff/0ff0e7e1ec579417bcf9207678f19085 to your computer and use it in GitHub Desktop.
Save calthoff/0ff0e7e1ec579417bcf9207678f19085 to your computer and use it in GitHub Desktop.
x = 1
n = 5
a_list = []
for i in range(1, n + 1):
a_list.append(x)
x = x * i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment