conversions.octal_to_hexadecimal¶
Attributes¶
Functions¶
|
Convert an Octal number to Hexadecimal number. |
Module Contents¶
- conversions.octal_to_hexadecimal.octal_to_hex(octal: str) str ¶
Convert an Octal number to Hexadecimal number. For more information: https://en.wikipedia.org/wiki/Octal
>>> octal_to_hex("100") '0x40' >>> octal_to_hex("235") '0x9D' >>> octal_to_hex(17) Traceback (most recent call last): ... TypeError: Expected a string as input >>> octal_to_hex("Av") Traceback (most recent call last): ... ValueError: Not a Valid Octal Number >>> octal_to_hex("") Traceback (most recent call last): ... ValueError: Empty string was passed to the function
- conversions.octal_to_hexadecimal.nums = ['030', '100', '247', '235', '007']¶