continue loop without iteration...
Roman Suzi
rnd at onego.ru
Fri Jun 1 06:59:26 EDT 2001
More information about the Python-list mailing list
Fri Jun 1 06:59:26 EDT 2001
- Previous message (by thread): continue loop without iteration...
- Next message (by thread): continue loop without iteration...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 1 Jun 2001 kasper37 at caffeinedreams.com wrote: > basically, this is what I need to do: > > x=1 > y=x > > while x <= y: > if something: > x=x+1 > y=y+1 > continue > dosomething > x=x+1 x = y = 1 while x <= y: if something: y=y+1 else: dosomething x=x+1 is much clearer, IMHO. > therefore, if the if statement is always true, it should never end, > but as soon as it's false, dosomething will happen and it will stop. > > Dan Sincerely yours, Roman A.Suzi -- - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
- Previous message (by thread): continue loop without iteration...
- Next message (by thread): continue loop without iteration...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list