Skip to content

Instantly share code, notes, and snippets.

@ahmedazizkhelifi
Created July 24, 2020 14:09
Show Gist options
  • Save ahmedazizkhelifi/8658c533738b4a193dcce20c3d25d489 to your computer and use it in GitHub Desktop.
Save ahmedazizkhelifi/8658c533738b4a193dcce20c3d25d489 to your computer and use it in GitHub Desktop.
def iterative_factorial(n):
f = 1
for i in range(2, n+1):
f *= i
return f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment