[Tutor] Re: Why is this write defined as a tuple, instead ofpicking list?

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Apr 16 18:10:21 EDT 2004


> > >     for x in article_items:
> > >         write = "<h3>", article_items[0], "</h3>"
> > 
> > Why are you writing the same header for every item in the
> > list?
> 
> I'm not giving the same header ...

Yes you are, you never change article_items.
I assume you meant to write x[0] instead?

Alan G.



More information about the Tutor mailing list