In [46]:
a= 1
b =2
a,b = b,a
In [38]:
def factorial_(n):
count = 1
for elem in range(1,n +1):
count *= elem
return count
In [ ]:
In [40]:
factorial_(4)
Out[40]:
In [42]:
for i in range(1,20):
print(factorial_(i))
In [48]:
bin(21)
Out[48]:
In [ ]: