<div dir="ltr"><br>On Sat, Nov 7, 2009 at 3:26 PM, Dave Angel <<a href="mailto:davea@ieee.org">davea@ieee.org</a>> wrote:<br><div class="gmail_quote"><div class="im">
> Alan Gauld wrote:<br>
>><br>
> Alan - Excellent comments, as usual.<br>
><br>
> bibimidi - I would point out that after you remove the 'global choose' line<br>
> as Alan said, you should rename the global variable you're using to store<br>
> the return value. They're allowed to have the same name, but it's confusing<br>
> to a beginner if they do, since you might assume they somehow share the<br>
> value.<br>
><br>
<br>
</div>Thank you all for the helpful insights. I will keep in mind the naming<br>
rules in Python, so as not to have it in collision with Python's<br>
builtins.<br>
<br>
The mention to tidy up e.g. "compartmentalize" code is also noted. I<br>
agree definitely.<br>
<br>
I'm reworking my code and will post back.<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
Best Regards<br>
<br>
Marie von Ebner-Eschenbach - "Even a stopped clock is right twice a<br>
day." - <a href="http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html" target="_blank">http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html</a><br>
</font></div><br><br clear="all"><br>-- <br>Best Regards,<br>bibimidi<br><br><br>
</div>