is there a better way?

Schüle Daniel uval at rz.uni-karlsruhe.de
Fri Feb 10 17:29:47 EST 2006


[...]

> 
> What not
> 
> for x in list:
>   if x == O:
>     break
>   storage.append(x)
> 

i think this may take too long
better aproach would be to test for zero from the end

Regards, Daniel




More information about the Python-list mailing list