def med_is_hex(s):
    """Takes a string and returns whether all characters of the string are contained within [0123456789abcdef] - assume lowercase abcdef."""
    return set(s) <= set('1234567890abcedf')