I would like to generate 10 different points on an x,y scatterplot and there would be a path that could go through every point and return to the starting point.
import random
import matplotlib.pyplot as plt
num_points = 10
x1 = [random.randrange(start=1, stop=10) for i in range(num_points)]
x2 = [random.randrange(start=1, stop=10) for i in range(num_points)]
y1 = [random.randrange(start=1, stop=10) for i in range(num_points)]
y2 = [random.randrange(start=1, stop=10) for i in range(num_points)]
xy1 = [x1,y1]
plt.scatter(x1, y1, c='blue')
plt.scatter(x2, y2, c='red')
plt.show()
result: scatterplot of 10 points
goal: this was done via paint