#built way of factorial
from math import factorial# imports is like a libraries in java and c++
print "built in way"
print(factorial(10))
#iterative way
fac=1
for x in range(1,11):
fac=fac*x
print ("iterative way")
print (fac)
built in way
3628800
iterative way
3628800