[Tutor] List manipulation
Srinivas Iyyer
srini_iyyer_bio at yahoo.com
Wed Sep 13 21:17:38 CEST 2006
Dear group:
I have a data like this:
10 15
16 20
25 35
45 50
55 60
61 65
75 80
Since 15 precedes 16, I want to consider 10:20 as one
unit. If I repeat completely for data
I would get:
10 20
25 35
45 50
55 65
75 80
test = ['10\t15', '16\t20', '25\t35', '45\t50',
'55\t60', '61\t65', '75\t80']
I cannot think a way to do this in simple. Could
members suggest some way to solve this please.
thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Tutor
mailing list