Write a Python Program to Add two binary numbers and print the sum


Topic: Write a Python Program to Add two binary numbers and print the sum

Solution

num1 = '00001'
num2 = '10001'
sum = bin(int(num1,2) + int(num2,2))
print(sum)



List all Python Programs