Why Don't Return?
Victor Subervi
victorsubervi at gmail.com
Mon Dec 3 15:05:54 EST 2007
Hi;
Here is sample function:
def a():
b()
print c
def b():
c = "Hi"
return c
if __name__ == "__main__":
a()
then run a(). Throws error about c not being defined. How do I return c from
b?
TIA,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071203/d1309653/attachment.html>
More information about the Python-list
mailing list