import array


def get_hex(code_seq):
    """Return a hex representation of a string.

    This function does not remove the delimiter code.

    Parameters
    ----------
    code_seq : bytearray
        A sequence of character codes.

    Returns
    -------
    dump : str
        E.g. "26 24 12 24 DC 0E AC".
    """

    assert any(
        isinstance(code_seq, i) for i in (bytes, bytearray, array))
    return ' '.join('{:02X}'.format(c) for c in code_seq)