+ 1

FACTORIAL IN PYTHON

6th Jan 2020, 10:49 AM
Akash More
Akash More - avatar
5 odpowiedzi
+ 8
Where is your attempt ? Saboor Hakimi 🇦🇫 not a good recommendation, especially for a beginner. He must learn to write it himself first.
6th Jan 2020, 10:56 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 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.
6th Jan 2020, 4:49 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
Use built-in function factorial() from math module import math math.factorial(x)
6th Jan 2020, 10:52 AM
Abdol Hashimi
Abdol Hashimi - avatar
0
from math import factorial print(factorial (int(input()))) https://code.sololearn.com/culvT4tHkDQn/?ref=app
7th Jan 2020, 3:16 AM
Abhishek Tandon
Abhishek Tandon - avatar