def symmetric_difference_cardinality(s, q):
    """Return the cardinality of the symmetric difference of two sets.

    Parameters
    ----------
    s : iterable
        Elements of the first set. Values must be hashable.
    q : iterable
        Elements of the second set. Values must be hashable.

    Returns
    -------
    int
        ``len(set(s) ^ set(q))``.

    """
    return len(set(s) ^ set(q))