On Nov 18, 2011, at 13:15, ALAN GAULD <alan.ga...@btinternet.com> wrote:
> > > > for var in [value,value_1]: > > > var = "green" > > > > Um, that won't work. You typed that example too quickly. > > Oops! Yes. You'd need to enumerate and access the variables > via an index. yuk. Don't do it folks! :-) > > Excuse: It was early morning and I hadn't had any coffee... > > Alan G. > ____ In your defense Alan, after you typed that code in your response you mentioned the necessity of defining the variables: >But you need to have already created the variables >somewhere and unless there >is a big list its not usually >worth while. Alexander Etter > ___________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor