In Python 3.0 and above, which the book you are using teaches, input()
does what raw_input()
did in Python 2, so in that case the code would be correct; however, it appears that you are using an older version of Python (2.6?).
I would recommend going to the Python website and downloading the latest version of Python 3 instead, so you have an easier time following the book.
The immediate problem, given that you are using Python 2, is that you're using input()
, which evaluates whatever you give it. What you want to do is get the raw string that the user input:
Name = raw_input("What is your Name? ")
There are lots of little differences between Python 3.x and 2.x, so definitely go get the latest Python 3 if you want to keep using Python 3 for Absolute Beginners.