0
Decimal to binary coffee coach intermediate python
I worked out a longer coffee to get the coach done and looked at solution to see how it was presented. The recursion concept is hot or miss with me still. Besides that one slide, I grasped the other parts of the lesson but I don't understand the solution for the coach. Can anyone help explain it.
1 ответ
0
a = 79
# Base 2(binary)
bin_a = bin(a)
print(bin_a)
print(int(bin_a, 2)) #Base 2(binary)
Output:
0b1001111
79