Python Programming - Convert Decimal to Binary, Octal and Hexadecimal | User Input - Upsated 2021

Опубликовано: 26 Март 2026
на канале: WeMakeItEasy
53,644
562

A video tutorial to demonstrate on how to make python program to convert a decimal number into binary, octal and hexadecimal number.

======================================================
======================================================

Decimal system is the most widely used number system. But computer only understands binary. Binary, octal and hexadecimal number systems are closely related and we may require to convert decimal into these systems. Decimal system is base 10 (ten symbols, 0-9, are used to represent a number) and similarly, binary is base 2, octal is base 8 and hexadecimal is base 16.

A number with the prefix '0b' is considered binary, '0o' is considered octal and '0x' as hexadecimal. So let’s get started.

======================================================
======================================================

Other videos:

Python Programming - Converting Floating Numbers into Binary Numbers | User Input
   • Python Programming - Converting Floating N...  

======================================================
======================================================

If you have any question, queries, suggestion just hit the comment below in the comment section and don’t forget to like and subscribe to my channel.