# Generate oscillating pattern 1, -1, 2, -2, 3, -3, ... k times

k = 10

for i in range(1, k+1):
  

# Generate oscillating pattern 1, -1, 2, -2, 3, -3, ... k times

k = 10

for i in range(1, k+1):
  

# Generate oscillating pattern 1, -1, 2, -2, 3, -3, ... k times