How can I get an array of alternating values in python?,"np.resize([1, -1], 10)"