#solution accepts integer input and integer comparison value
#solution outputs the factorial of the integer input 
#solution outputs Boolean identification of whether the factorial is greater than identified comparison value

#import math module and call factorial()
import math 

print("Enter a number to calculate its factorial:")
factorial_value = int(input())
print("Enter a number to compare with the factorial:")
comparison_value = int(input())


#factorial method
result = math.factorial(factorial_value)

#greater than user_input_comparison?
is_greater = result > comparison_value


#output factorial
print(f"The factorial value of {factorial_value} is {result}")
print(is_greater)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: