Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'read.': 0.03; 'exception,': 0.09; 'throws': 0.09; 'cc:addr:python-list': 0.11; 'language.': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'traceback.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'getting': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'pm,': 0.38; 'expect': 0.39; 'enough': 0.39; 'how': 0.40; 'full': 0.61; 'show': 0.63; '"it': 0.84; 'working,': 0.84; '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=Vm/hnFNZ7+QynPou/Xlkv+pPsb0VD8827NDJdzg+AxI=; b=rVFvKxKCJXpGiPqwWNmM9tCAwEbfXEepCBUa44FLBanf554yKuxxK9HGcSQNomTOm+ kw12NtiY6SEhD0KO9dtohyes/Aal9T3TJ5m6xaxTM/ZkFpd8r5leuSESkB1HJ48ePgEu 1NUILnDYtzkM8FEBTsC8z7Ys1zHyQABE1VeJh0RlaS1vn6XXjvF88AgS9Mnkqhf1QCuM Ebhe8dNLYhzpsGSm6PQxZ6rWNkity091tGOShKA7LDV72WpiIlKTn5ylHsCiJHITov// 5stSexE+0V/RQ/L7wdxnvJ360A5b28T+2nctXcXkBbEKszf4CvM30bEv0+oaHTXDu/YC hbwg== MIME-Version: 1.0 X-Received: by 10.42.216.148 with SMTP id hi20mr445459icb.12.1407381078665; Wed, 06 Aug 2014 20:11:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 7 Aug 2014 13:11:18 +1000 Subject: Re: Wikibooks example doesn't work 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407381082 news.xs4all.nl 2850 [2001:888:2000:d::a6]:54981 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75822 On Thu, Aug 7, 2014 at 12:58 PM, Seymore4Head wrote: > Why not? > I think I know why it isn't working, but I don't know enough yet on > how it should work. > The If statement isn't getting read. One thing you need to learn about Python... or, for that matter, pretty much any language. "It isn't working" is not very helpful; what you need to do is show what you expect and what it does. If the script throws an exception, post the full traceback. ChrisA