# take input
num = int(input('Enter any decimal number: '))
# display result
print('Binary value:', bin(num))
Decimal to Binary
Python program to Convert Decimal to Binary
0 Comments
Add Comment
Log in to add a comment
# take input
num = int(input('Enter any decimal number: '))
# display result
print('Binary value:', bin(num))
Decimal to Binary
Python program to Convert Decimal to Binary
Log in to add a comment