Skip to content

Instantly share code, notes, and snippets.

@devenes
Created March 24, 2022 13:02
Show Gist options
  • Save devenes/b346dcdf11aec349c98cce13eb86d4a5 to your computer and use it in GitHub Desktop.
Save devenes/b346dcdf11aec349c98cce13eb86d4a5 to your computer and use it in GitHub Desktop.
First Factorial
def FirstFactorial(numero):
numero = int(input("Enter a number: "))
i = 1
if(numero == 0):
return "1"
for i in range(1, numero):
numero = numero*i
return numero
print(FirstFactorial(input()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment