Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'failing': 0.07; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:broken': 0.16; 'wrote:': 0.18; 'result.': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'anyone': 0.31; 'figure': 0.32; 'cases': 0.33; 'no,': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'wrong': 0.37; 'pm,': 0.38; 'show': 0.63; 'jul': 0.74; '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=EpUuDtAYY2TEGmU1SCmMvN0oFxBP6C79598rIwUVTao=; b=bLJYKIF1YsYPuZ7wgSsPGyDxG0JqF6liI7XgOkqsRKsScf1K3PLP9e8G7WCIDcrwpE WINVZB0kp2xn36VCo0V3rtVst30owUoVa+t7+VbcI9NIaUsU+p8yLOwyc3mi/OO0TAiS tCHol6iq4qmKRDfQqnly5RMOPk7o/PpT11rS/dfraAG5Em9nOBiaYLclgFg7Bzpdvgrw D5E3mWl4sj/RAXqFn6TTScX2V7RP9HoqB9IR3s1ZMVJngIhlYbm1X3jry92EyMVjiiNk vIOIzd3thmZWkKIzzBwuBL2IEMY6RdMqbpFXXcfD//gpIdcxy3ohoiBocLHDO7FG5BxP b+5A== MIME-Version: 1.0 X-Received: by 10.58.11.234 with SMTP id t10mr8341386veb.8.1405217958946; Sat, 12 Jul 2014 19:19:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 13 Jul 2014 12:19:18 +1000 Subject: Re: codingbat question broken? 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405217961 news.xs4all.nl 2925 [2001:888:2000:d::a6]:46678 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74394 On Sun, Jul 13, 2014 at 12:05 PM, Rodrick Brown wrote: > > Can anyone show me an example where all test are success? No, because that's asking for the answer :) What you need to do is look at the failing test cases, and figure out why your function is giving the wrong result. Do you see what's true of all the failing cases and is not true of any others? That might give you a clue as to what's wrong. ChrisA