def gray_to_bin(bin_list):
 b = [bin_list[0]]
 for i in range(1, len(bin_list)):
  b += str(int((b[(i - 1)] != bin_list[i])))
 return ''.join(b)

def gray_to_bin ( bin_list ) : b = [ bin_list [ 0 ] ] for i in range ( 1 , len ( bin_list ) ) : b += str ( int ( ( b [ ( i - 1 ) ] != bin_list [ i ] ) ) ) return '' . join ( b )
convert from gray coding to binary coding .