def jaccard_sim(vec1, vec2):
    intersection = 0
    union = 0
    for i in range(len(vec1)):
        if ((vec1[i] == '--') or (vec2[i] == '--')):
            continue
        if ((vec1[i] == 1) or (vec2[i] == 1)):
            union += 1
        if ((vec1[i] == 1) and (vec2[i] == 1)):
            intersection += 1
    return (intersection / union)
def jaccard_sim(vec1, vec2):
    intersection = 0
    union = 0
    for i in range(len(vec1)):
        if ((vec1[i] == '--') or (vec2[i] == '--')):
            continue
        if ((vec1[i] == 1) or (vec2[i] == 1)):
            union += 1
        if ((vec1[i] == 1) and (vec2[i] == 1)):
            intersection += 1
    return (intersection / union)