<div dir="ltr"><div><div>Ah, that was actually correct.<br></div>Thanks ...<br><br></div>/Martin S<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-26 20:58 GMT+02:00 alister <span dir="ltr"><<a href="mailto:alister.nospam.ware@ntlworld.com" target="_blank">alister.nospam.ware@ntlworld.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, 26 Jun 2014 20:53:35 +0200, Martin S wrote:<br>
<br>
> Hi,<br>
><br>
> I've been following the tutorial here<br>
> <a href="http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/" target="_blank">http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/</a><br>
> But when I get to section 1.10 there is<br>
><br>
> person = input('Enter your name: ')<br>
><br>
> However this generates an error<br>
><br>
><br>
>>>> person = input('Enter your name: ')<br>
> Enter your name: hi<br>
><br>
> Traceback (most recent call last):<br>
>   File "<pyshell#0>", line 1, in <module><br>
>     person = input('Enter your name: ')<br>
>   File "<string>", line 1, in <module><br>
> NameError: name 'hi' is not defined<br>
>>>><br>
>>>><br>
> I have no idea what I am doing wrong with this - it look correct to me.<br>
><br>
> I'm obviously doing something stupid, anyone can suggest what?<br>
><br>
> /M .<br>
<br>
</div></div>As a quick guess you are using python 2.X when the tutorial is written<br>
for python 3.X<br>
Input is one of the incompatible changes between 2.x & 3.x<br>
try raw_input instead (or install Python 3)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
You can't get there from here.<br>
--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Martin S
</div>