I want to create two lists based on sorted_bounds
with every other tuple.
bounds = [1078.08, 1078.816, 1078.924, 1079.348, 1079.448, 1079.476]
sorted_bounds = list(zip(bounds,bounds[1:]))
print(sorted_bounds)
# -> [(1078.08, 1078.816), (1078.816, 1078.924), (1078.924, 1079.348), (1079.348, 1079.448), (1079.448, 1079.476)]
Desired output:
list1 = [(1078.08, 1078.816), (1078.924, 1079.348), (1079.448, 1079.476)]
list2 = [(1078.816, 1078.924), (1079.348, 1079.448)]
How would I do this? I am completely blanking.