def w_binary_to_hex(word):
    """Converts binary word to hex (word is a list)

    >>> w_binary_to_hex("111")
    '0x7'

    >>> w_binary_to_hex([1,1,1,1])
    '0xf'

    >>> w_binary_to_hex([0,0,0,0,1,1,1,1])
    '0xf'

    >>> w_binary_to_hex([0,1,1,1,1,1,0,0])
    '0x7c'
    """

    if isinstance(word, str):
        return hex(int(word, 2))
    elif isinstance(word, list):
        bin_str = "".join(str(e) for e in word)
        return hex(int(bin_str, 2))