I want to calculate distances between points given in lp and grid. When I run the code given below, the results are saved in a list (50 rows, 1 column). What I want to do is