Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=6459403 By: holdenweb
You appear to be using Python 2.X. Unlike the newer 3.0, in older versions of Python the input() function takes a string from the user, evaluates it as a Python expression, and then returns the result of the evaluation. So, since you haven't established a variable called "three" the attempted evaluation raises an exception. Try using the raw_input() function, but note: this returns a string, so you will have to convert that to a floating-point or integer number by applying either the float() or the int() function. If the format of the input does not allow it to be converted a ValueError exception will be raised, so you'll have to be prepared to catch that. ______________________________________________________________________ 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