List = [[10,17],[13,15],[13,17]]
for x in list:
x_list = x_list + [x[0]]
y_list = y_list + [x[1]]
Result:
x_list = [10, 13, 13]
y_list = [17, 15, 17]
This is what I did to separate the values. How do I check if there is an overlap in x_list
or y_list
?