Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'tutorial': 0.03; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:question': 0.10; 'martin': 0.11; 'suggest': 0.14; 'nameerror:': 0.16; 'python3.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stupid,': 0.16; 'subject:coding': 0.16; 'url:luc': 0.16; 'wrote:': 0.18; 'obviously': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; "i've": 0.25; 'url:edu': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'correct': 0.29; 'am,': 0.29; "i'm": 0.30; '"",': 0.31; 'anyone': 0.31; 'file': 0.32; 'url:python': 0.33; 'running': 0.33; '(most': 0.33; 'guess': 0.33; "i'd": 0.34; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'doing': 0.36; 'hi,': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:3': 0.61; 'name:': 0.61; "you're": 0.61; 'name': 0.63; 'here': 0.66; 'received:12': 0.81 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: Newbie coding question Date: Thu, 26 Jun 2014 13:05:40 -0700 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: www.westernstatesglass.com User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1403813183 news.xs4all.nl 2875 [2001:888:2000:d::a6]:43938 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73635 On 6/26/2014 11:53 AM, Martin S wrote: > 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? I'd guess you're running Python2, and need to be running Python3. Emile