You are on page 1of 1

value str(value%2)+"" print

67 67%2=1
1""
33 33%2=1
11""
16 16%2
011
8 8%2
0011
4 4%2
00011
2 2%2
000011
1
1

value=value//2
33=67//2
16=33/2
8=16//2
4=8//2
2=4//2
1=2//2
100011 0=1//2

You might also like