From 2d2fb0829672db9b66bdadf80970529e78489af1 Mon Sep 17 00:00:00 2001 From: Hawas ka Pujari <33070636+DrVirus1@users.noreply.github.com> Date: Tue, 20 Oct 2020 06:34:07 +0530 Subject: [PATCH] Create cdboh.py --- cdboh.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cdboh.py diff --git a/cdboh.py b/cdboh.py new file mode 100644 index 0000000..231dbbd --- /dev/null +++ b/cdboh.py @@ -0,0 +1,7 @@ +# 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.")