{ '0':'c->c->a' ,'1':'a->b->a' .........}

John Ladasky ladasky at my-deja.com
Sun Nov 7 15:32:46 EST 2010


Hi Chris,

I may have time to look at the rest of your code later.  For now I
just want to comment on one line:

On Nov 7, 12:24 pm, chris <oz... at web.de> wrote:

>     elem=['a','b','c'][i]

The string type, just like the list type, is a sequence type. So
strings have all the standard sequence methods.  You could just write:

elem = "abc"[i]




More information about the Python-list mailing list