def predict(hypothesis, example):
    """Predicts the outcome of the hypothesis (True/False)"""
    for h,a in zip(hypothesis, example):
        if h == '0':
            return False
        elif h != '?' and h != a:
            return False
    return True