On Thu, Apr 25, 2013 at 5:40 AM, boB Stepp <robertvst...@gmail.com> wrote:
> One thing that no one has addressed so far is why when I put quotes > around my input, as in 'boB', the program does run in the command > prompt. > Remember that input(), in Python 2, executes what's passed to it. If your input is boB, then Python tries to execute the statement boB - and unless you've previously defined boB, Python doesn't know what to do with it. If you put quotes around your input, Python recognizes it as a string literal. Python "executes" string literals by simply printing them to standard output - try it at a Python prompt sometime - which is probably not the behavior you were expecting, but doesn't throw an error either.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor