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]:
24

In [42]:
for i in range(1,20):
    print(factorial_(i))


1
2
6
24
120
720
5040
40320
362880
3628800
39916800
479001600
6227020800
87178291200
1307674368000
20922789888000
355687428096000
6402373705728000
121645100408832000

In [48]:
bin(21)


Out[48]:
'0b10101'

In [ ]: