Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'algorithm': 0.04; 'mrab': 0.05; 'oh,': 0.09; 'cc:addr:python-list': 0.11; '"python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'implemented,': 0.16; 'pythonic': 0.16; 'demonstrate': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'subject:need': 0.19; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'yourself.': 0.31; 'quite': 0.32; 'third': 0.33; 'received:google.com': 0.35; 'version': 0.36; 'really': 0.36; 'list': 0.37; 'nov': 0.38; 'handle': 0.38; 'pm,': 0.38; 'most': 0.60; 'discuss': 0.62; 'homework': 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=nxfa1yhQjtP/uMty+caYCHEDzovT0ujuxXTMdlqu7cg=; b=JNHdeUMmHLJEOlkZlL67a1dCts3Ih8Zpv09pfrbSIpcVnHVOuk4DuZx52vpnD4O0Tg R9sx8d+sYnDi+aZaEJCVBHLLL1hsZp64HVZlhqko66cATE/CotuzkmswGP4bV91YCWC5 K2LOEGGdlXIkNEtNrmgptWCjKJD1DAq/qiIKvdkzFy0bdfUBVOXnRnAFgcJf79NGcIPb Uh8NNGjOVmOFjzmlG0E557sdxk8SyjpWDPTJc/UK3MsM6d8EzdlilntUql8m/NvKokQ6 +5/h6PvMpgrxfrtQZLoQOrEfmh1y71lnZHl2yLH1cNC4pRo5gKgnJR/CykGKjWmR83YG 0TPg== MIME-Version: 1.0 X-Received: by 10.107.136.224 with SMTP id s93mr1755725ioi.36.1415245650904; Wed, 05 Nov 2014 19:47:30 -0800 (PST) In-Reply-To: References: <1962053862.5573720.1415210715670.JavaMail.zimbra@estudiantes.uci.cu> Date: Thu, 6 Nov 2014 14:47:30 +1100 Subject: Re: I need algorithm for my task 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415245653 news.xs4all.nl 2869 [2001:888:2000:d::a6]:60882 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80309 On Thu, Nov 6, 2014 at 2:36 PM, Denis McMahon wrote: > On Wed, 05 Nov 2014 18:49:01 +0000, MRAB wrote: > >> It doesn't work for the final example or "barbaz". > > Oh, and we really need a private "python homework answers" list where we > can discuss the most pythonic solution we can think of for all these > homework / coursework questions without showing the solutions to the > students. > > I'm quite proud of a 2 line solution to the third algorithm that I > implemented, although it might be considered as somewhat obfuscated code > by some. ;) Fun way to handle that: You get access only when you demonstrate that you can write a (mostly-)working version yourself. ChrisA