Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b = int(input("Enter the number you want to convert to Decimal")
- def btod(dec):
- a = bin(dec)
- a = a.replace("0b","")
- return a
- print(btod(b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement