Re: [Tutor] Another assert() question

2008-07-13 Thread Marcel Wunderlich
Hi Dick, because set(list) creates an unsorted collection without duplicate entrys of the items in the list. If you pass an empty list, the resulting set will also be an empty collection. A list containing an empty list evaluates non false, since it's not empty. Maybe it helps you to compar

Re: [Tutor] splits and pops

2008-07-12 Thread Marcel Wunderlich
Hi Eric, I tried following and it seems to work: fullstring = """l1r1 ll1r2 l1r3l1 r4 l1r5 l2r1l2r3l3 r3 l2r4l2r5 l3r1l3r2l3r3l3r4l3r5 """ # This should be a string like your's. "\t"-seperated columns, "\n"-seperated # rows, with "\n" in some co