8140171224 / factriol-python

My Python Examples by aakash padhiyar

Home Page:https://padhiyar.me/

Repository from Github https://github.com8140171224/factriol-pythonRepository from Github https://github.com8140171224/factriol-python

define function fact(n):

def fact(n):

variable f is equal to value 1

f = 1

For loop for Factorial in Python

for i in range(1, n+1):
    f = f*i
return f

x is value for main.py

x = 4

call function

result = fact(x)
print(result)

Information

BY aakash padhiyar

8140171224

About

My Python Examples by aakash padhiyar

https://padhiyar.me/


Languages

Language:Python 100.0%