Advertisement
facedwarrior193

Decimal to Binary

Mar 26th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. b = int(input("Enter the number you want to convert to Decimal")
  2. def btod(dec):
  3.     a = bin(dec)
  4.     a = a.replace("0b","")
  5.     return a
  6. print(btod(b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement