Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 534 Bytes

File metadata and controls

31 lines (19 loc) · 534 Bytes

Encode a String to Hexadecimal

Question

Write a program to encode a string to hexadecimal.

Solution

.. literalinclude:: ../../languages/python/algorithm_hexlify.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_hexlify.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`algorithm_hexlify.py`
   * :python-better-explain:`algorithm_hexlify.rst`