print is not a function

Marc Boeren M.Boeren at guidance.nl
Thu Oct 9 08:35:47 EDT 2003


Hi,

> > for goodx in [x for x in my_list if x.startswith('QA')]: print goodx
> 
> Yeah, I like that.
> That will become my favorite, thanks
> (mind if I replace goodx with x :-)

That was what I typed first but I modified it to make the one-liner more
self-explanatory.

Cheerio, Marc.





More information about the Python-list mailing list