To make the swap, you'll need a temporary variable.

Extra Credit:

Once you got swap working with integers, can you do it with Boolean arrays, without using a temporary variable? E.g.,

a = array([False, True, True, False, True])
b = array([True, False, True, False, False])
Hint: This is a classic programming-language-job interview question. GIYF!