DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python factorial
def
factorial
(
n
)
:
fact
=
1
for
num
in
range
(
2
,
n
+
1
)
:
fact
*=
num
return
fact
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#factorial
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit