+ 1
FACTORIAL IN PYTHON
5 Answers
+ 8
Where is your attempt ?
Saboor Hakimi đŠđ« not a good recommendation, especially for a beginner. He must learn to write it himself first.
+ 2
Akash More If you progress more into your Python course here in the chapter Recursion you will find an example for factorial which you can adapt to your needs.
By the way almost every course here has the factorial example.
+ 1
Use built-in function factorial() from math module
import math
math.factorial(x)
0
from math import factorial
print(factorial (int(input())))
https://code.sololearn.com/culvT4tHkDQn/?ref=app