Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'assign': 0.07; 'undefined': 0.07; 'subject:help': 0.07; 'already.': 0.09; 'nameerror:': 0.09; 'cc:addr:python-list': 0.10; '66,': 0.16; 'subject:user': 0.16; 'typo': 0.16; 'code,': 0.18; 'received:209.85.214.174': 0.21; 'defined': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; 'case,': 0.29; 'probably': 0.29; 'e.g.': 0.30; 'error': 0.30; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'url:listinfo': 0.32; 'traceback': 0.33; 'problem': 0.33; 'anyone': 0.33; 'likely': 0.33; 'hi,': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'next': 0.35; 'url:org': 0.36; 'should': 0.36; 'moment': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'received:209.85.214': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'john': 0.60 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:to :cc:content-type; bh=UDYks9Nae6y/7gz5I7+JS83PGU8hKRaQldEOas6wPnA=; b=J8rJLW4gUqyg1MCbvsurZVTFveU/jNZKi9wZoZs8thX1z+BwQE0K+kan4tM7JqLQBf gc+b8K0ei+L82aAzbjBPbF7j1WpDf/I8EiQGBg2+HFDbl97A9E8jvatBluUgSvO/Os27 tVQUiC3eRhF3hUMgAm1GNNqzl/pLAmQVIey89tNg7MYsKpnQpiqVPYThgG6hZC2szBzF mf9ythsonSUov+IVnA+B7mL/ESR8vueBj1eaXxam99qP/Fvz59KbWnUSxiFfFXz4d8/z 3wMYEBn1lvA+qXU2nfV+srOgFOTDuWBghRGVd1N8Eo0vfjOxNOsgp0q7SHDxANAWnnTh NYrQ== MIME-Version: 1.0 In-Reply-To: <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> References: <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> Date: Sun, 5 Aug 2012 23:06:49 +0200 Subject: Re: Intermediate Python user needed help From: Vlastimil Brom To: John Mordecai Dildy Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344200811 news.xs4all.nl 6856 [2001:888:2000:d::a6]:35058 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26562 2012/8/5 John Mordecai Dildy : > Current Problem at the moment > > Traceback (most recent call last): > File "ex26.py", line 66, in > beans, jars, crates = secret_formula(start-point) > NameError: name 'start' is not defined > > anyone know how to make start defined > -- > http://mail.python.org/mailman/listinfo/python-list Hi, you would need to assign something to the name "start", e.g. start = 3 the next error would probably be undefined "point", which should get subtracted from "start" according to the code ... However, in your case, this is likely another typo in the code, you probably want "start_point", which is defined in the script already. hth, vbr