Re: [Tutor] split struggle

2010-06-23 Thread Peter Otten
Richard D. Moores wrote: > Please see my Python 3.1 code pasted at > . > > This does what I want, which is to do one of: > 1. print all the elements of the list, lst. > 2. print "Done" when "" is entered. > 3. print the elements of lst whose indexes are entere

Re: [Tutor] split struggle

2010-06-22 Thread Richard D. Moores
On Tue, Jun 22, 2010 at 15:09, Alan Gauld wrote: > > "Richard D. Moores" wrote > >> This does what I want, which is to do one of: >> 1. print all the elements of the list, lst. >> 2. print "Done" when "" is entered. >> 3. print the elements of lst whose indexes are entered. >> (sorry if all this

Re: [Tutor] split struggle

2010-06-22 Thread Richard D. Moores
On Tue, Jun 22, 2010 at 15:09, Alan Gauld wrote: > > "Richard D. Moores" wrote > >> This does what I want, which is to do one of: >> 1. print all the elements of the list, lst. >> 2. print "Done" when "" is entered. >> 3. print the elements of lst whose indexes are entered. >> (sorry if all this

Re: [Tutor] split struggle

2010-06-22 Thread Steven D'Aprano
On Wed, 23 Jun 2010 06:58:25 am Richard D. Moores wrote: > Please see my Python 3.1 code pasted at > . > > This does what I want, which is to do one of: > 1. print all the elements of the list, lst. > 2. print "Done" when "" is entered. > 3. print the elements o

Re: [Tutor] split struggle

2010-06-22 Thread Alan Gauld
"Richard D. Moores" wrote This does what I want, which is to do one of: 1. print all the elements of the list, lst. 2. print "Done" when "" is entered. 3. print the elements of lst whose indexes are entered. (sorry if all this is obvious) Now, the code works, but isn't there a better way to d