def DecimalToBinary(num):
if num = 1:

DecimalToBinary(num // 2)

print(num % 2, end = '')
if __name__ == '__main__':

dec_val = 24

DecimalToBinary(dec_val)
What is the output of the following python program

Posted on by