This function converts decimal number to binary and prints it
(num)
| 1 | def decimalToBinary(num): |
| 2 | """This function converts decimal number |
| 3 | to binary and prints it""" |
| 4 | if num > 1: |
| 5 | decimalToBinary(num // 2) |
| 6 | print(num % 2, end="") |
| 7 | |
| 8 | |
| 9 | # decimal number |