[Tutor] help
Alan Gauld
alan.gauld at btinternet.com
Thu Feb 24 10:04:26 CET 2011
"Chris Schiro" <cschiro.gc at gmail.com> wrote
> I am completely new to programming aside from working with basic
> many years
> ago. I purchased a Python book for beginners so I could start from
> scratch
> which has been walking me through just fine until: writing a program
> to
> interact with user for feedback:
>
> name=input("What is your name? ")
>
> I have found that this line will return an error every time while
> running
> the completed program, unless I enter a number.
It sounds like you are using a Python v3 book but running Python v2.
Python v3 was a major change and not backward compatible with
Python 2.
As a beginner your best bet is probably to upgrade your
copy of Python to v3. The snag with that is that some
3rd party modules are not yet ported to v3, but hopefully,
by the time you need to use them, if ever, they will be!
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list