Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73629

Newbie coding question

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 <shieldfire@gmail.com>
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; '&gt;&gt;&gt;': 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 <shieldfire@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11263.1403808853.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[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 | NextNext in thread | Find similar | Unroll thread


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