# we use functions to use repetetive tasks by defining functions
#I would like to define a factorial function so that I can use it all over my code
def factorial(n):
f = 1
for i in range(1,n+1):
f=f*i
print(f) #this would print the value of the facotrial but we cannot exploit the value in the code if we want
factorial(4)
factorial(5)
factorial(100)
24 120 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000
factorial(23)
25852016738884976640000
def factorial(n):
f = 1
for i in range(1,n+1):
f=f*i
return f #this will help us to use this value and do something more with it
a = 6*factorial(3)
print(a)
36
b = factorial(9)/100
print(b)
3628.8
c= factorial(5)*factorial(7)
print(c)
604800