python for with double test

Szabolcs Nagy nszabolcs at gmail.com
Fri Dec 30 18:12:44 CET 2005


for i in range(0,10):
    if f!=1: break
    ...

i=0
while i<10 and f==1:
    ...
    i+=1




More information about the Python-list mailing list