Thanks Dave. I forgot to hit the reply to all last time. I am going to try the loop when I get back home and will let you know how I make out.
Also we have done some functions. Sort and append being among them. I try the simplest way first then stream line later. Probably not the fastest way. Tony On 1/23/13 3:05 PM, "Dave Angel" <d...@davea.name> wrote: >You posted this privately to me. It should have been a message to the >forum, with tutor@python.org as its to: field. > >On 01/23/2013 10:42 AM, anthonym wrote: >> Should the outside loop have a print command in it so I don't loose that >> information like I do now? >> > >Yes, the print and the delete are technically in the outer loop. I was >thinking in terms of a function, in which case I probably would have >included those two elements in the function. But my wording was wrong. > >Can you write an attempted solution, and post it to the thread, along >with whatever difficulty you still see? > >Rough pseudo-code > >while something-in-list > find minimum element (this is a loop, similar to the one you >already wrote) > print out whatever you need from that element > delete that element > >print out "success" > > > >-- >DaveA _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor