Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/factorial.py Secret

Created Jan 7, 2021
Embed
What would you like to do?
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