print "%s"

Rob Weir rweir at ertius.org
Mon Aug 18 02:40:15 EDT 2008


On 18 Aug 2008, Beema Shafreen wrote:
> Hi ALL,
>
> In my script i have to print a series of string , so
>
> print "%s\t%s\t%s\t%s\t%s\t%s\t" %("a","v","t","R","s","f")

print "\t".join(("a","v","t","R","s","f")) + "\t"

Note the double brackets.

-- 
-rob




More information about the Python-list mailing list