<div>I agree.</div>
<div>Regards,</div>
<div> </div>
<div>Asrar<br><br> </div>
<div><span class="gmail_quote">On 10/17/06, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> 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>> My solution : (i have tested it)<br>><br>><br>> list1 = [10,15,18,20,25,30,40]
<br>><br>> for i in range(len(list1)-1):<br>> print list1[i],list1[i+1]<br>> 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 - <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.