Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 7, 2021 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/650313cec965973041676797c9791e0b to your computer and use it in GitHub Desktop.
Save parzibyte/650313cec965973041676797c9791e0b to your computer and use it in GitHub Desktop.
def factorial(numero):
if numero <= 0:
return 1
factorial = 1
while numero > 0:
factorial = factorial * numero
numero -= 1
return factorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment