(value)
return (value[2:] if value.startswith("0x") else value).decode("hex")
Decodes string value from hex to plain format

    >>> hexdecode('666f6f626172')
    'foobar'
Decodes string value from hex to plain format
Decodes string value from hex to plain format
def hexdecode(value):
    """
    Decodes string value from hex to plain format

    >>> hexdecode('666f6f626172')
    'foobar'
    """

    value = value.lower()
    return (value[2:] if value.startswith("0x") else value).decode("hex")
def hexdecode ( value ) : value = value . lower ( ) return ( value [ 2 : ] if value . startswith ( "0x" ) else value ) . decode ( "hex" )