a simple def how-to
stefan_ml at behnel.de
Sun Mar 7 18:17:01 CET 2010
vsoler, 07.03.2010 16:05:
> My script starts like this:
> But I would like to have something equivalent, like...
> for i in ranges:
Note that the name "i" is rather badly chosen as it generally implies a
totally different thing (integer) than what you use it for (names of ranges).
"ranges" seems to fall into the same bucket, but I guess that's just
because I can't extract the meaning from your code snippet (which is not a
Try to use expressive names in your code, so that people who look at it for
the first time get an idea about what it does with what kind of data.
More information about the Python-list