[Tutor] running function program

Richard Hultgren hultgren1946 at yahoo.com
Sun Dec 20 13:53:19 CET 2009


Hello,
when i try to run this (see below) i get message: socket error: no connection could be made because the target maching actively refused it, and, idle subprocess didn't make connection.  either idle can't start a subprocess or personal firewall software is blocking the connection.
def mult(a, b):
    if b == 0:
        return 0
    rest = mult(a, b - 1)
    value = a + rest
    return value
print "3 * 2 = ", mult(3, 2)
i used idle window(gui) and new window and it works sometimes.  Help!?
Richard


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091220/c0903c9a/attachment.htm>


More information about the Tutor mailing list