Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder7.xlned.com!news2.euro.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'raised': 0.07; 'received:209.85.160.174': 0.07; 'subject:help': 0.07; 'python': 0.09; 'nameerror:': 0.09; 'cc:addr:python-list': 0.10; 'suggest': 0.11; '66,': 0.16; 'hint:': 0.16; 'subject:user': 0.16; 'wrote:': 0.17; 'written': 0.20; 'defined': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; '(most': 0.27; 'strongly': 0.27; 'message-id:@mail.gmail.com': 0.27; 'all.': 0.28; 'far,': 0.29; 'code': 0.31; 'file': 0.32; 'could': 0.32; "aren't": 0.33; 'traceback': 0.33; 'problem': 0.33; 'anyone': 0.33; 'tutorial': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'anything': 0.36; 'problems': 0.36; 'two': 0.37; 'moment': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'john': 0.60; "you've": 0.61; 'more': 0.63; 'to,': 0.65; 'august': 0.66; 'obvious': 0.71; 'yourself': 0.77 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=acBYoDn47hT3FZ67LeuycW6ap+PYAGGlqtzmOkCgjRY=; b=Ocr5IH5Y0Py/U5j3RvCCvBfU5KU54R0fuNBx5Fixyqv9EQdHzuFZD63hK6BWAD3ia3 kwjptrR/qbxKwjcOfxEQj7HCNlhYcRM6rcoGPai2uhcXilLg6v++SdCb7DNgqox7VJJ/ QyfxAtKRgEuljJSxWEwatEmBqgz6mxw1WAc8ps+454Y5ScMTLKG8jG3gcjw6jmQ2j2og kpstWZe6JF+PW3pj8JBokWxjJuZXW3rmvaA44CGwuQycKr70PWCYMQnvsrVqu2eQ/HOL EbcVBd6mkZT4sowMYeyLH1NkPLkb/valfab/MfMtZb/JbNDB+uNy9cF2oqP15HKpvu5j DWvA== MIME-Version: 1.0 Sender: z@etiol.net X-Originating-IP: [190.104.28.24] In-Reply-To: <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> References: <506eb405-eb07-4175-9efb-40475cabacf1@googlegroups.com> From: Zero Piraeus Date: Sun, 5 Aug 2012 17:07:43 -0400 X-Google-Sender-Auth: IA9v-ibovvSNGYTAnHs1ASJ8T1Q Subject: Re: Intermediate Python user needed help To: John Mordecai Dildy Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQm1ZZwCDwj+R5D9F/Q2i+Ty6ozLVq51GhRLuCOzHJ3JaAKqz64W3G19djKA63VT2Lf1aETQ 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: 1344200886 news.xs4all.nl 6971 [2001:888:2000:d::a6]:36692 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26563 : On 5 August 2012 16:52, John Mordecai Dildy wrote: > 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 I think you could help yourself by reading a good tutorial or two ... so far, the problems you've raised suggest quite strongly that you either aren't reading the code with anything like the care that you need to, or just don't understand Python at all. Hint: if the offending line were written like this, would it be more obvious what's wrong? beans, jars, crates = secret_formula(start - point) -[]z.