Decimal to binary coffee coach intermediate python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

12th Apr 2022, 8:25 PM
SouthRD
SouthRD - avatar
1 Answer
0
a = 79 # Base 2(binary) bin_a = bin(a) print(bin_a) print(int(bin_a, 2)) #Base 2(binary) Output: 0b1001111 79
13th Apr 2022, 3:43 AM
Umar Farooq