Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=6459361 By: siking1
Hello. I am still new to python, so I am not sure if the following is a problem with pydev, python, or me. I am trying to use the input(prompt) function to read a number from the user. If the user does supply a number everything is fine. However, if the user supplies a non-number, say something like "three", then the program crashes with an error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 1, in <module> NameError: name 'three' is not defined What am I doing wrong? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users