Write a python function that takes in a decimal number and prints it's binary representation


Topic: Write a python function that takes in a decimal number and prints it's binary representation

Solution

def dec2bin(num):
    print(format(num, "b"))



List all Python Programs