Newbie Nested Function Problem

Brian Samek zensunni at rochester.rr.com
Sun Jan 25 05:24:15 CET 2004


Oh wow!  Thanks a lot - that was exactly the issue.  I changed the variable name and the program works perfectly now.  I didn't realize that a variable name in a program would have that effect.

Brian
  "Rich Krauter" <rmkrauter at yahoo.com> wrote in message news:mailman.753.1075001453.12720.python-list at python.org...
  Looks like you are setting the variable 'leave' to the user input, and then you are calling the function leave(), but remember that 'leave' has been set to some string.
  So say you enter 'xqz', and expect it to restart the loop when you get to the leave call --- well, what you are doing is trying to call the function xqz().
  Rich
  On Sat, 2004-01-24 at 21:45, Brian Samek wrote: 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040125/f323b78b/attachment.html>


More information about the Python-list mailing list