def _compare_term(minterm, term):
 for (i, x) in enumerate(term):
  if ((x != 3) and (x != minterm[i])):
   return False
 return True

def _compare_term ( minterm , term ) : for ( i , x ) in enumerate ( term ) : if ( ( x != 3 ) and ( x != minterm [ i ] ) ) : return False return True
return true if a binary term is satisfied by the given term .