break multiple loop

Rainer Deyke root at rainerdeyke.com
Sat Feb 17 12:36:56 EST 2001


"hwan-jo yu" <hwanjoyu at students.uiuc.edu> wrote in message
news:Pine.GSO.4.10.10102170913380.22713-100000 at ux8.cso.uiuc.edu...
> Hi,
> It seems that there is now "goto" statement in the python.
> How can we terminate multiple for or while loop ?
> Thanks.

Either 'return' or 'raise'.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list