def swap_item(items, a, b):
    copy = items[a]
    items[a] = items[b]
    items[b] = copy
    return items
Swap an item a with b, in a list.
dataset/ETHPy150Open christabor/MoAL/MOAL/helpers/generic.py/swap_item