Python has built-in functions that allow us to convert decimal numbers into other number formats,
including binary, octal, or hexadecimal number formats.
bin() allows us to convert a decimal number to binary.
oct() allows us to convert a decimal number to octal.
hex() allows us to convert a decimal number to hexadecimal.
This is shown in the following code below:
If you don't want these prefixes to appear before the number,
you can use the format() function to remove them.
This is shown in the code below:
If you were wanted to act in reverse and convert a number from another number format into decimal,
you can use the int() function to do this.
This is shown below: