conversions.octal_to_hexadecimal ================================ .. py:module:: conversions.octal_to_hexadecimal Attributes ---------- .. autoapisummary:: conversions.octal_to_hexadecimal.nums Functions --------- .. autoapisummary:: conversions.octal_to_hexadecimal.octal_to_hex Module Contents --------------- .. py:function:: 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 .. py:data:: nums :value: ['030', '100', '247', '235', '007']