Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Returning a result from 3 items in a list Date: Tue, 24 Nov 2015 22:05:04 +1100 Lines: 11 Message-ID: References: <133829df-f57f-442f-9dbf-b22b22f656ae@googlegroups.com> <45b60b80-d6b7-423e-93b9-2ef4977fb368@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 2cQIcekmdEnCO+GLoEAOkQnssjFl3zrs3Wc5RCejHlyw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'yeah,': 0.09; '24,': 0.16; 'defined;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'figured': 0.29; 'tue,': 0.34; 'received:google.com': 0.35; 'nov': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'received:209': 0.38; 'mean': 0.38; 'subject:from': 0.39; "'result'": 0.84; 'chrisa': 0.84; 'heh.': 0.84; 'otten': 0.84; 'to:none': 0.91 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=CjZ3AY0g3eXEVeCS80kj9GocPbZinqR92g5+O/8ur00=; b=u/0FReya8L/EMpDgS+187RbXASIQo0Xjh/PM5NUouKQI9otRbQ46z5MqREKid/Cn+R kcw9s129qre3DrYt8/vkKziQztgSf1SyqiFnCjuNR5fQQ/cfmn3HCrRSjbgeG40qIyyo 89LJx1mR4nSqi66Ry7rVtd3W3WdIBRAJ6OFps6Mdoe8PvMFlv/kN9SIS1G+hl8QtrXQF 82/0sdooDlUShHA3bcJscfXuUPaIAVrvEggf3Fyfwa90SiWbv94/im+k1PGwyM8K38zn ZdlbMI70T83r65JLLorAMU3P5px/ZP1o/W0ImJ+lNxJquRxSdxpvlVj22EFEsbGDtJ72 Z2WA== X-Received: by 10.107.10.233 with SMTP id 102mr28994788iok.31.1448363104316; Tue, 24 Nov 2015 03:05:04 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99313 On Tue, Nov 24, 2015 at 9:35 PM, Peter Otten <__peter__@web.de> wrote: > Yeah, the error message really should be > > "NameError: name 'result' is not defined; did you mean 'results'?" > > ;) Heh. Yes, that was my fault. Sorry Cai! it should have been results["jordan"], as you figured out. ChrisA