x = abs(int(input("Insert any number: "))) factorial = 1 for i in range(2, x+1): factorial *= i print("The result of factorial = ",factorial)

Output:

Insert any number: 4 The result of factorial = 24

Insert any number: 12 The result of factorial = 479001600