def swap(l, i, j):
    """
    Swap the index i with the index j in list l.

    Args:
        l (list):   list to perform the operation on.
        i (int):    left side index to swap.
        j (int):    Right side index to swap.

    Returns:
        list
    """

    l[i], l[j] = l[j], l[i]

    return l