"Roelof Wobben" <rwob...@hotmail.com> wrote

But it looks like it's in a indefinitive loop.

What went wrong here ?

When debugging this kind of thing insert a raw_input() statement
in the loop(to force a pause)  and just before it print out the key
variables. That way you can see what is happening and what is
not working the way you expect.

In this case you could print out the start, index and character values.

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to