Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.083 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'non-default': 0.09; '"to': 0.16; 'from:addr:alec.taylor6': 0.16; 'from:name:alec taylor': 0.16; 'subject:] ': 0.18; 'received:209.85.210.174': 0.21; 'received:mail-iy0-f174.google.com': 0.21; 'code': 0.26; 'message- id:@mail.gmail.com': 0.29; 'problem': 0.29; 'lines': 0.30; 'joined': 0.32; 'word.': 0.32; 'to:addr:python-list': 0.35; 'subject:[': 0.35; 'external': 0.35; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'using': 0.37; 'another': 0.37; 'received:209.85': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; '"an': 0.84; 'subject:Golf': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=TiyBU6st+56WLOmk2M1sSLp6Kvtk533t4ew+cjdqd1o=; b=RLx3StMCg8NfaNiI70eQwkT96pe0IOsXb2J1thyBDlCVmsRKGLh/Z+/MFDgACXxbsX 7xTtU8MesCwb2PApWf+fgq9eexY2sSG3JMztopb899d9i2FpETpElVUBYXggHEKpKg6U QGlYZH7OocSCvcLRSJVQ26A1BUyvrsThXa+tQ= MIME-Version: 1.0 Date: Sun, 5 Feb 2012 22:49:43 +1100 Subject: [Perl Golf] Round 1 From: Alec Taylor To: "comp.lang.python" Content-Type: text/plain; charset=ISO-8859-1 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328442586 news.xs4all.nl 6901 [2001:888:2000:d::a6]:59725 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19867 One sentence can contain one or more strings next to each-other, which can be joined to make another word. e.g.: "to get her" == "together" "an other" == "another" "where about" == "whereabouts" &etc Solve this problem using as few lines of code as possible[1]. Good luck! [1] Don't use external non-default libraries; non-custom word-lists excepted