<div>I agree.</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Asrar<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Kent Johnson</b> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Asrarahmed Kadri wrote:<br>&gt; My solution : (i have tested it)<br>&gt;<br>&gt;<br>&gt; list1 = [10,15,18,20,25,30,40]
<br>&gt;<br>&gt; for i in range(len(list1)-1):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; print list1[i],list1[i+1]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; list1[i+1] += 1<br><br>Note that this changes the original list, which may or may not be<br>acceptable. Normally you would expect a printing function not to change
<br>the value being printed.<br><br>Kent<br><br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">
http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br><br clear="all"><br>-- <br>To HIM you shall return.