I agree.
Regards,
Asrar
On 10/17/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
Asrarahmed Kadri wrote:
> My solution : (i have tested it)
>
>
> list1 = [10,15,18,20,25,30,40]
>
> for i in range(len(list1)-1):
> print list1[i],list1[i+1]
> list1[i+1] += 1
Note that this changes the original list, which may or may not be
acceptable. Normally you would expect a printing function not to change
the value being printed.
Kent
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
--
To HIM you shall return.
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
