def tupleSwap(tp):
    """
    Swap two elements of a tuple.

    Parameters
    ----------
    tp : tuple of any
        Denoted by (a, b).

    Returns
    -------
    tuple of any
        (b, a).

    """
    a, b = tp
    return (b, a)