Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!81.171.88.16.MISMATCH!hq-usenetpeers!hq-usenetpeers.eweka.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'tutorial': 0.03; 'subject:question': 0.10; 'martin': 0.11; 'suggest': 0.14; 'nameerror:': 0.16; 'stupid,': 0.16; 'subject:coding': 0.16; 'url:luc': 0.16; 'obviously': 0.18; '>>>': 0.22; 'error': 0.23; '>>>': 0.24; "i've": 0.25; 'url:edu': 0.26; 'defined': 0.27; 'idea': 0.28; 'correct': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '"",': 0.31; 'anyone': 0.31; 'file': 0.32; 'url:python': 0.33; '(most': 0.33; 'skip:& 30': 0.33; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'hi,': 0.36; 'wrong': 0.37; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'name:': 0.61; 'name': 0.63; 'here': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Id48LwHVxfRfX+mnrc83lR68nwtm5GTMiVIBE0DSI50=; b=E5c3y6rvgoCmigc5OFQIOs1AUzF7Sa+fOQM7JHCjQfignMqH4nwhCaqdk1VIulDjiV eVh6mmwi5cdcqopM6Adgaz4CyoIwun+NKFrz7Zy9F+dUmXRKVuAWpzwshhEJ+kHalM8d Le4IugrsXWrnpydwRZkT07RtFwg+cETH8oN0DodVv/rBVjalIkrL2RZDl8TgK/OUBLCS 3NJTJJPvpDx0KXOiBYjNuadV9WAarQ9lNNq1vi3qQMEAAWw0WCDUY/BXrUdsnXmv+ZpL RPO0iF2L/YJe/1nJ+fh92tlBBm5hEScw41A2AzYOalPp9nuKWcth+0xWMBgX5ra1bRPo 6i6A== MIME-Version: 1.0 X-Received: by 10.58.29.164 with SMTP id l4mr15354686veh.8.1403808815341; Thu, 26 Jun 2014 11:53:35 -0700 (PDT) Date: Thu, 26 Jun 2014 20:53:35 +0200 Subject: Newbie coding question From: Martin S To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7bacb63cc5695104fcc1b592 X-Mailman-Approved-At: Thu, 26 Jun 2014 20:54:13 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1403808853 news.xs4all.nl 2973 [2001:888:2000:d::a6]:50336 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 5143 X-Received-Body-CRC: 2330069371 Xref: csiph.com comp.lang.python:73629 --047d7bacb63cc5695104fcc1b592 Content-Type: text/plain; charset=UTF-8 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 "", line 1, in person = input('Enter your name: ') File "", line 1, in 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 --047d7bacb63cc5695104fcc1b592 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I've been following the tut= orial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/
But = when I get to section 1.10 there is

person =3D input('Enter =
your name: ')

However this generates an error

>>> person =3D input= ('Enter your name: ')
Enter your name: hi

Traceback (most= recent call last):
=C2=A0 File "<pyshell#0>", line 1, i= n <module>
=C2=A0=C2=A0=C2=A0 person =3D input('Enter your name: ')
=C2=A0 = File "<string>", line 1, in <module>
NameError: na= me '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
--047d7bacb63cc5695104fcc1b592--