<div>a = [[1,1],[3,1.5],[5,0]]</div>  <div>for i in range(len(a)) :<BR>&nbsp;&nbsp;&nbsp; if a[i][1] &gt; a[i-1][1] :<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 'greater !!'<BR>&nbsp;&nbsp;&nbsp; else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print "smaller"</div>  <div>greater !!</div>  <div>greater !!</div>  <div>smaller</div>  <div><BR>Thanks for taking the time to help me Aditya.&nbsp; I tried the code but have encountered a problem.&nbsp; In this new list,<BR>[1,&nbsp;&nbsp;&nbsp; 1]<BR>[3,&nbsp;&nbsp;&nbsp; 1.5]<BR>[5,&nbsp;&nbsp;&nbsp; 0]</div>  <div>only the second and third "greater" and "smaller" output are correct as 1.5 is larger than 1 and 0 is smaller than 1.5.&nbsp; What is i[1] greater than?&nbsp; </div>  <div>I also tried using + for next item instread, but that produced an error.&nbsp; Why?</div>  <div>&nbsp; if a[i][1] &gt; a[i+1][1] </div><p>&#32;
      <hr size=1>Be a better sports nut! Let your teams follow you 
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a>