From f010bde9bb5372a3db0fa3b82a623f37de4bcb28 Mon Sep 17 00:00:00 2001 From: onea7351 <73738058+onea7351@users.noreply.github.com> Date: Sat, 31 Oct 2020 14:48:30 +0530 Subject: [PATCH] Create dec2bin.py --- Write_Program_in_any_lang/python/dec2bin.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Write_Program_in_any_lang/python/dec2bin.py diff --git a/Write_Program_in_any_lang/python/dec2bin.py b/Write_Program_in_any_lang/python/dec2bin.py new file mode 100644 index 00000000..1a439523 --- /dev/null +++ b/Write_Program_in_any_lang/python/dec2bin.py @@ -0,0 +1,5 @@ +# decimal number +number = int(input("Enter any decimal number: ")) + +# print equivalent binary number +print("Equivalent Binary Number: ", bin(number))