I have the following situation:
I have 4 numerical lists ranging from 1 to 30. Eg:
AP_X = [1,2,3,4,5...30]
AP_Y = [1,2,3,4,5...30]
demanda_X = [1,2,3,4,5...30]
demanda_Y = [1,2,3,4,5...30]
-
I have another empty list called
distancia
that will receive the result of these interactions.distancia = []
-
Lists
AP_X
andAP_Y
represent the coordinates of a point and thedemandas_X
anddemanda_Y
lists represent the coordinates of another point. -
I need to make every point
AP(x,y)
match every pointdemanda(x,y)
. -
For example:
distancia = [1,1,1,1 | 1,1,2,2 | 1,1,3,3 |...| 2,2,1,1 | 2,2,2,2| ...| 30,30,1,1 | 30,30,2,2 ]
I do not know if it was clear, but I need to combine all AP(x,y)
with all demanda(x,y)
.
Thanks in advance for the help.