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