Answers for "wap to print factorial of a number using function in python"

9

python calculate factorial

def factorial(n):
    fact = 1
    for num in range(2, n + 1):
        fact = fact * num
    return(fact)
Posted by: Guest on May-24-2020
0

wap to print factorial of a number using function in python

Def factorial(p) :
F=1
For in range (1,p+1):
F=f*i
Return (f)
Posted by: Guest on December-16-2020

Code answers related to "wap to print factorial of a number using function in python"

Python Answers by Framework

Browse Popular Code Answers by Language