I have two lists:
x_points = [0, 50, 100]
y_points = [10, 20, 30]
And I want to end up with a tuple of lists of the individual points, [x_i, y_i], like this: ([0, 10],[50, 20],[100, 30])
Is there an easier or more pythonic way than this enumeration?
result = tuple([x, y_points[i]] for i, x in enumerate(x_points))