(bin_list)
return ''.join(b)
Convert from binary coding to gray coding.

    We assume big endian encoding.

    Examples
    ========

    >>> from sympy.combinatorics.graycode import bin_to_gray
    >>> bin_to_gray('111')
    '100'

    See Also
    ========
    gray_to_bin
Convert from binary coding to gray coding.
Convert from binary coding to gray coding .
def bin_to_gray(bin_list):
    """
    Convert from binary coding to gray coding.

    We assume big endian encoding.

    Examples
    ========

    >>> from sympy.combinatorics.graycode import bin_to_gray
    >>> bin_to_gray('111')
    '100'

    See Also
    ========
    gray_to_bin
    """
    b = [bin_list[0]]
    for i in xrange(0, len(bin_list) - 1):
        b += str(int(bin_list[i]) ^ int(b[i - 1]))
    return ''.join(b)
def bin_to_gray ( bin_list ) : b = [ bin_list [ 0 ] ] for i in xrange ( 0 , len ( bin_list ) - 1 ) : b += str ( int ( bin_list [ i ] ) ^ int ( b [ i - 1 ] ) ) return '' . join ( b )