From 59413fb0d10c03b32ed0f096b66a5c33bdeed2cd Mon Sep 17 00:00:00 2001 From: np169899 <91543067+np169899@users.noreply.github.com> Date: Sat, 2 Oct 2021 19:44:36 +0530 Subject: [PATCH] Create Python Program to Convert Decimal to Binary, Octal and Hexadecimal --- ...ram to Convert Decimal to Binary, Octal and Hexadecimal | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Python Program to Convert Decimal to Binary, Octal and Hexadecimal diff --git a/Python Program to Convert Decimal to Binary, Octal and Hexadecimal b/Python Program to Convert Decimal to Binary, Octal and Hexadecimal new file mode 100644 index 0000000..231dbbd --- /dev/null +++ b/Python Program to Convert Decimal to Binary, Octal and Hexadecimal @@ -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.")