if foo: # empty list [] evaluates to False do_something()and
while foo: x = foo.pop() do_something(x)Cheers, --OH.
In reply to Re^2: Some Insights from a Traveler Between Languages
by Anonymous Monk
in thread Some Insights from a Traveler Between Languages
by skyknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |