code: def get_xy_array(x_segment, y_segment):
      
      xy_array = []
      for num, x in enumerate(x_segment):
          xy_array.append((x, y_segment[num]))
      return xy_array
docs: input: x_segment, y_segment
      output: xy_segment, ( format: [(x[0], y[0]), (x[1], y[1])]