strings for beginers

Tim Wintle tim.wintle at
Sat Mar 7 22:25:56 CET 2009

On Sat, 2009-03-07 at 12:53 -0800, Sapote wrote:
> I have an incrementing variable disc_num that I could insert in the
> line below to create discspanisoX.iso where X is incrementing...
>   burn_cmd = "mkisofs   -udf  -o /home/donkey/discspaniso.iso -graft-
> points --path-list %s" %(temp_list)

burn_cmd = "mkisofs   -udf  -o /home/donkey/discspaniso%d.iso
-graft-points --path-list %s" %(x,temp_list)

(i.e. %d for an integer, %s for a string, %f for a float etc.)

More information about the Python-list mailing list