Hehe,
Yah, I should've read the tutorial again, I do apologise, it was a 3
in the morning-coffee not working question.
Regards,
Liam Clarke
On 8/17/05, Alan G <[EMAIL PROTECTED]> wrote:
> > changeIndex = None
> > al = len(line)
> > for i in range(al):
>
> And theres the problem.
> Pythonpro
> changeIndex = None
> al = len(line)
> for i in range(al):
And theres the problem.
Pythonprovides two loops, for is really a *foreach* so if you don't
want to process *each* item - eg by jumping forward - then you really
should use while and manage the index thataway.
You can hack about with the
mailing list wrote:
> Hi all,
>
> I should know this, but it seems to elude me at present.
>
> I have a loop which is looping through a line of chars by index.
>
> So, one of these -
>
> for i in range(len(line)):
>
>
> Now, question is, is there a simple way to 'fast forward' index i?