Friends,
While iterating through each list item and printing/writing it, why does
the sq. brackets get printed/written to the file. Just a small eg.code is
given below.

>>>N=100
>>> myl=range(1,100+1)
>>> new=[myl[i:i+15] for i in range(0, len(myl),15)]
>>> for x in new: print x

Thanks,
Bala
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to