Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73629
| Date | 2014-06-26 20:53 +0200 |
|---|---|
| Subject | Newbie coding question |
| From | Martin S <shieldfire@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11263.1403808853.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Newbie coding question Martin S <shieldfire@gmail.com> - 2014-06-26 20:53 +0200
Re: Newbie coding question alister <alister.nospam.ware@ntlworld.com> - 2014-06-26 18:58 +0000
Re: Newbie coding question Martin S <shieldfire@gmail.com> - 2014-06-26 21:16 +0200
csiph-web