Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'interpreter.': 0.07; 'cc:addr:python-list': 0.11; '37,': 0.16; 'callable': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'traceback.': 0.16; 'typeerror:': 0.16; 'sat,': 0.16; 'so.': 0.16; 'wrote:': 0.18; 'working.': 0.19; 'cc:addr:python.org': 0.22; 'print': 0.22; 'finally,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; 'code': 0.31; '25,': 0.31; 'file': 0.32; '(most': 0.33; 'actual': 0.34; 'received:google.com': 0.35; 'recent': 0.39; "you're": 0.61; 'subject:Lists': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=kTyfkCPRZFn8o8xAIH/MB5yKFDo1nwwOOj/TARIcaPg=; b=UBO03rk0LBNQB+t8Ibq5lCziqpEo4BvinFU4TC2kddaSXK1ipgv2jjavyZo9v6JSVW YeB5DXfx8iGfC32p5+E/IfIgfWPmVmg3J1JIbcgwmNWkH5afElPw26uPIcDzYdJhOS2r CQaKFPcA9ZICBY+YXP/EF1kiOHFssz3Dfm6gxeztbckHv62jcmQ/ETQ6aV9Af817KaOA HUNQP8eqL1k7NFuXu9eMsP2O+HGcbABsAj03boT3HDkxweeNkrlmIGM/XuQJDmCeGjkV O5AK2XWQ1J3EPcqDF5CmcdX2KAP+rYHvGAn6GyTZZsBvdxs0gIXJ+W34mELorUSu+6gi hTeg== MIME-Version: 1.0 X-Received: by 10.107.134.89 with SMTP id i86mr3460900iod.53.1414169272234; Fri, 24 Oct 2014 09:47:52 -0700 (PDT) In-Reply-To: References: <2412654f-ac5e-4678-8956-afc4e27affb3@googlegroups.com> <3082ee74-3182-4ea5-9851-2b1326e5b34c@googlegroups.com> Date: Sat, 25 Oct 2014 03:47:51 +1100 Subject: Re: I am out of trial and error again Lists From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414169280 news.xs4all.nl 2949 [2001:888:2000:d::a6]:50982 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79580 On Sat, Oct 25, 2014 at 3:37 AM, Seymore4Head wrote: > When I use list(range(10)) I get: > Traceback (most recent call last): > File "C:/Functions/name to number digit.py", line 37, in > print (nametonumber(a))#1800 438 2427 837 > File "C:/Functions/name to number digit.py", line 10, in > nametonumber > if y in lst(range(1,10)): > TypeError: 'list' object is not callable Now, finally, you're showing us an actual line of code and an actual traceback. And from here, we can see that you misspelled "list". That's why it isn't working. Several people have told you to use the interactive interpreter. Please do so. ChrisA