Methinks I'm missing something obvious, but can't quite put my finger on it. If, in the interpreter, I enter the following code:<div><br></div><div><div>def hungry(batVolt):</div><div>     if batVolt >94:</div><div>
         return ("I am not hungry at the moment")</div><div>     elif 64 < batVolt < 95:</div><div>         return ("I'm starting to get hungry")</div><div>     else:</div><div>         return ("I'm hungry!")</div>
<div><br></div><div>and then run</div><div><br></div><div>hungry(98)</div><div><br></div><div>with 98 just being an example of the many numbers I tried when testing this, I get the return I expected and all is well.</div>
<div><br></div><div>If, however, I save the above in a file named hungry.py, then import hungry, I get an error, as follows:</div><div><br></div><div><div>import hungry</div><div>hungry(96)</div><div>Traceback (most recent call last):</div>
<div>  File "<stdin>", line 1, in <module></div><div>TypeError: 'module' object is not callable</div></div><div><br></div><div>So what am I missing? Someone do please point out the obvious. ;-)</div>
<div><br></div><div>regards, Richard</div><div><br></div>-- <br>
        
        
        <dl><dt>
        
        
        


<p align="LEFT" style="margin-bottom:0in;line-height:0.18in">
<font color="#333333"><font size="4" face="comic sans ms, sans-serif">sic
gorgiamus allos subjectatos nunc</font></font></p></dt></dl><br>
</div>