Endless loop

alexru taradov at gmail.com
Sat Jan 2 08:18:13 EST 2010


On Jan 2, 3:50 pm, vsoler <vicente.so... at gmail.com> wrote:

> My question is: why does this second script not stop after printing
> number 3?  what made the first one stop while the second one will not?

First one will raise IndexError when string is over, second one won't.



More information about the Python-list mailing list