Re: [Tutor] way of dictating leading zeros

2009-03-16 Thread Alan Gauld
"Patrick" wrote Is there an easy way to dictate how many digits a number will occupy that also allows for leading zeros? Andre showed you the way to do this using "String Formatting". Search for that phrase in the docs for al lot more info. If you are considering using Python v3 then that st

Re: [Tutor] way of dictating leading zeros

2009-03-15 Thread Andre Engels
On Mon, Mar 16, 2009 at 3:47 AM, Patrick wrote: > Hi Everyone > > I am trying to write a program that creates a bunch of svg files and > then edits their values. I am then encoding them into a video. It's not > encoding right because my filenames are wrong. They have to have a > sequence. Right no

[Tutor] way of dictating leading zeros

2009-03-15 Thread Patrick
Hi Everyone I am trying to write a program that creates a bunch of svg files and then edits their values. I am then encoding them into a video. It's not encoding right because my filenames are wrong. They have to have a sequence. Right now they are 1.svg, 2.svg, 3.svg etc but they should be 001.sv