Write a python function that accepts a binary string and converts it into an equivalent decimal number


Topic: Write a python function that accepts a binary string and converts it into an equivalent decimal number

Solution

def bin2dec(num):
    return int(num, 2)



List all Python Programs