<div dir="ltr"><br>On Sat, Nov 7, 2009 at 3:26 PM, Dave Angel &lt;<a href="mailto:davea@ieee.org">davea@ieee.org</a>&gt; wrote:<br><div class="gmail_quote"><div class="im">
&gt; Alan Gauld wrote:<br>
&gt;&gt;<br>
&gt; Alan - Excellent comments, as usual.<br>
&gt;<br>
&gt; bibimidi - I would point out that after you remove the &#39;global choose&#39; line<br>
&gt; as Alan said, you should rename the global variable you&#39;re using to store<br>
&gt; the return value.  They&#39;re allowed to have the same name, but it&#39;s confusing<br>
&gt; to a beginner if they do, since you might assume they somehow share the<br>
&gt; value.<br>
&gt;<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&#39;s<br>
builtins.<br>
<br>
The mention to tidy up e.g. &quot;compartmentalize&quot; code is also noted. I<br>
agree definitely.<br>
<br>
I&#39;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  - &quot;Even a stopped clock is right twice a<br>
day.&quot; - <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>