def jaccard_similarity(first, second):
    """
    Given two sets, returns the jaccard similarity between them

    :param first: a set
    :param second: a set

    :return: the similarity as a double
    """
    return len(first & second) / len(first | second)