I define the following function, that takes in a list of numbers and flips its second position
def flip(x): y = x y[1] = -y[1] return y