Convert Decimal to Hexadecimal in Python

Prompt

Result