Import the factorial function from the math module and print the value of the factorial of x.
Calculating the factorial
Report a typo
Sample Input 1:
5Sample Output 1:
120Write a program in Python 3
# don't modify this code or variable `x` may not be available
x = int(input())
# use factorial() here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.