unicode as valid naming symbols
Marko Rauhamaa
marko at pacujo.net
Wed Apr 2 01:55:53 EDT 2014
Rustom Mody <rustompmody at gmail.com>:
> On Wednesday, April 2, 2014 8:28:02 AM UTC+5:30, Rustom Mody wrote:
>> In scheme, in a named-let, the name
>> chosen was very often 'loop'
>
> Umm... I see from your prime number example that there are nested
> loops in which sometimes you restart the inner and sometimes the
> outer. So you could not possibly call both of them 'loop' :-).
Correct. I could call them "inner" and "outer". After all, the code uses
variables like "i", "c" and "n".
However, it doesn't hurt to use variable/function/loop names that convey
meaning.
Marko
More information about the Python-list
mailing list