Newbie coding question
Martin S
shieldfire at gmail.com
Thu Jun 26 14:53:35 EDT 2014
Hi,
I've been following the tutorial here
http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/
But when I get to section 1.10 there is
person = input('Enter your name: ')
However this generates an error
>>> person = input('Enter your name: ')
Enter your name: hi
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
person = input('Enter your name: ')
File "<string>", line 1, in <module>
NameError: name 'hi' is not defined
>>>
I have no idea what I am doing wrong with this - it look correct to me.
I'm obviously doing something stupid, anyone can suggest what?
/M .
--
Regards,
Martin S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140626/cba9cfe1/attachment.html>
More information about the Python-list
mailing list