How to use the values of a list that is inside another list as arguments of a function in Python -


I am very new to Python I have a function DISTANCE (lat1, long1, lat2, long2) which calculates the distance between 2 digits.

Then I have a list named POINTS , where each value is the second list containing those four values.

I want to get the amount of the results of the DISTANCE function for all the values ​​inside POINTS .

Can anyone help me with that? Thanks!

If you are new to python then use for loop POINTS: res = DISTANCE (* item) result.append (res) print (amount) results for [

  results = [] item   

If you are confused what's here, * , you should read

Comments