title: python: How to compare elements within one list
body: <p>I'm trying to find the minimum value in a list using a for loop but I'm not getting the right answer.</p>
  
  <p>This is what I am doing:</p>
  
  <pre><code>xs=[5,3,2,5,6,1,0,5]
  
  for i in xs:
      if xs[i]&lt; xs[i+1]:
          print(i)
  </code></pre>
  
  <p>edit: sorry i should've said this earlier but I'm not allowed to use the min function!</p>