The problem here is that you need to reference the factor30 namespace to get to your functions:<br>
<br>
Your calls to your functions would then look like:<br>
<br>
factor30.factor(1000009)<br>
<br>
&<br>
<br>
factor30.factor0(1000009)<br>
<br>
<br>If you don't want to have to put the factor30 in front of all your function names you can do this:<br>
<br>
from factor30 import *<br>
<br>
Which will put all of your functions into the global namespace.<br>
<br>
Then you can call factor() & factor0() as you would expect to.<br>
<br>
<br>
<br><div><span class="gmail_quote">On 2/20/06, <b class="gmail_sendername">Kermit Rose</b> <<a href="mailto:kermit@polaris.net">kermit@polaris.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
IDLE 1.1.2<br>>>> import factor30<br>>>> factor(1000009)<br><br>Traceback (most recent call last):<br> File "<pyshell#1>", line 1, in -toplevel-<br> factor(1000009)<br>NameError: name 'factor' is not defined
<br>>>> factor0(1000009)<br><br>Traceback (most recent call last):<br> File "<pyshell#2>", line 1, in -toplevel-<br> factor0(1000009)<br>NameError: name 'factor0' is not defined<br>>>>
<br><br>_______________________________________________<br>Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor
</a><br></blockquote></div><br>