When you enter data for input()
in Python 2, you're entering a Python expression. Whatever you're typing
Looks like an expression -- not a literal.
Has an S in it (hence the undefined variable.)
Either
It's not clear what "I have Python 3 installed, but the program is being interpreted by Python 2.6." means. If it's installed, why isn't it being used? What's wrong with your PATH?