[Q] A better way to print?
eRrEiMcOgVoErMrE at cox.net
Sun Feb 23 05:58:23 CET 2003
Alex Martelli <aleax at aleax.it> wrote:
> print '-'.join( [str(witem) for witem in W] )
> would seem to be one of the best solutions. A variant:
> print '-'.join( map(str, W) )
Both of those work great.
== Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
"Therefore the considerations of the intelligent always include both
benefit and harm." - Sun Tzu
== Insults, like violence, are the last refuge of the incompetent... ===
More information about the Python-list