def fact(n):
f = 1
for i in range(1, n+1):
f = f*i
return f
x = 4
result = fact(x)
print(result)
My Python Examples by aakash padhiyar
Repository from Github https://github.com8140171224/factriol-python
def fact(n):
f = 1
for i in range(1, n+1):
f = f*i
return f
x = 4
result = fact(x)
print(result)
My Python Examples by aakash padhiyar