• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

Python Program to Convert Decimal to Binary, Octal and Hexadecimal

python-dev (58)in #python-dev • 6 years ago
# Python program to convert decimal into other number systems
dec = 344

print("The decimal value of", dec, "is:")
print(bin(dec), "in binary.")
print(oct(dec), "in octal.")
print(hex(dec), "in hexadecimal.")
6 years ago in #python-dev by python-dev (58)
$0.48
  • Past Payouts $0.48
  • - Author $0.24
  • - Curators $0.24
2 votes
  • crypto.income: $0.40
  • xiguang: $0.08
Reply 0
Sort:  
  • Trending
    • Trending
    • Votes
    • Age