title: Passing values through while loop error
body: <p>I'm having trouble passing values through my while loop. Ive coded below with some pseudocode in Place still I'm unsure how to achieve the result but I have attached my code below to help if it can. The error portion where is passing the values through the while loop</p>
  
  <p>Firstly my double list of values is as below. Which refers to name, easting, northing</p>
  
  <pre><code>Stationlist = [['perth.csv','476050','7709929'],['sydney.csv','473791','7707713'],['melbourne.csv','46576','7691097']]
  </code></pre>
  
  <p>And here is the code that I am using:</p>
  
  <pre><code>Import math 
  global Eastingbase
  global Northingbase
  Eastingbase=476050
  Northingbase= 7709929
  
  Def calculateDistance (northingOne, eastingOne, northingTwo, eastingTwo):
      Base =100000
      deltaEasting = eastingTwo -eastingOne
      deltaNorthing = northingTwo -northingOne
  
      Distance = (deltaEasting**2 + deltaNorthing**2) **0.5
      If Distance &lt; Base: 
       Return Distance
  
  Def Radius():
  1000
  
  L=0
  while L &lt;= Len(Stationlist): 
      if calculateDistance(Eastingbase, Northingbase, Stationlist(row L, column 2),Stationlist(row L, column 3)) &lt; Radius: 
          Relevantfilename = StationList (row L, column 1)
          print Relevantfilename
          L = +1
  </code></pre>
  
  <p>My error is that I am unsure how to pass the values from station list into the while loop and then continue the loop. I have tried using double list comprehension I.e [0][1] to pass the name but it won't work. Also adding plus 1 to L doesn't seem to continue the loop. Is there a way to pass all of the values from one row into the while loop and test it.?? I.e pass Perth.csv to Stationlist (row L, column 1), 476050 to Stationlist (row L, column 2) and 7709929 to Stationlist (row L, column 3)</p>
  
  <p>Once that is done then repeat for melbourne and Sydney data</p>