title: Why doesn't my for loop actually loop? I do not have a break function, and expected it to loop but it does not
body: <pre><code>import location
  if __name__ == &quot;__main__&quot; :
      locationlist = []
      while True :
          try : 
              coordinate = input(&quot;Enter X and Y separated by a space, or enter a non-number to stop: &quot;)
              a,b = coordinate.split()
              a = int(a)
              b = int(b)
              locationlist.append(coordinate)
          except ValueError:
              break
      print(&quot;Points: &quot;,locationlist)
      test = location.where_is_xy(coordinate,locationlist)
      print(test)
  </code></pre>
  <p>^ This is my main.py</p>
  <pre><code>def where_is_xy(coordinate,locationlist) :
      for coordinate in locationlist :
          x,y = coordinate.split()
          x = int(x)
          y = int(y)
          if x != 0 :
              if y == 0 :
                  Point = 'X-Axis.'
              elif x &gt; 0 :
                  if y &gt; 0 :
                      Point = 'Quadrant 1.'
                  elif y &lt; 0 :
                      Point = 'Quadrant 4.'
              elif x &lt; 0 :
                  if y &gt; 0 :
                      Point = 'Quadrant 2.'
                  elif y &lt; 0 :
                      Point = 'Quadrant 3.'
          elif x == 0 :
              if y != 0 :
                  Point = 'Y-Axis.'
              elif y == 0 :
                  Point = 'Origin.'       
          
          return(Point)
  </code></pre>
  <p>^ This is my location.py.</p>
  <p>When &quot;1 1&quot; and &quot;-1 -1&quot; is input, the output is &quot;Quadrant 1&quot;. I would like it to loop back and go through the list of tuples, but I cannot figure that out.</p>