Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51053

Re: Homework help requested, thanks to everyone.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:help': 0.08; 'random': 0.14; '"python': 0.16; 'enough.': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'generator.': 0.16; ':-)': 0.16; 'sender:addr:gmail.com': 0.17; '(but': 0.19; '>>>': 0.22; 'import': 0.22; 'skip': 0.24; 'header:In-Reply-To:1': 0.27; 'words': 0.29; 'is?': 0.30; 'message-id:@mail.gmail.com': 0.30; "they'll": 0.31; 'another': 0.32; 'problem.': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'useful': 0.36; 'project': 0.37; 'step': 0.37; 'skip:o 20': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'simple': 0.61; 'today': 0.64
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=aAKn2Tjj0r/L/274lJaW4lMf06LNbL4PgtDZIhf+upw=; b=gSDan2mqax1yQLGKdfzVvFv8ZDnJWiglXaQ4lhEfATT5lQbcwEtH2kgiYbNuJEtDaL ySFHvqhusNbzLBkyR7rgdfUnKGNaeUVpTEBO5i2s2MyfXNaAsYpmYU55xrnJIeDedi98 I9NZqoX+mBPqytUJuYVTeP8DYwtQyqG9+C0XAkWs1VhkPa7rs0MzbztfYFSvnv0dVtjg la4kHUOLtnb02GqpPt0kcEXN76CDCMmB4VvwBEOVmHuGnTszo8XySuHk541t75Qz1nG+ 0eoCMBixlFFtuiTkWGRYkvW+NOprKVbISQmm6xyKfWE0JBZ56wRyXgReSPUqkLubAaHZ NhkA==
MIME-Version 1.0
X-Received by 10.43.77.137 with SMTP id zi9mr16950016icb.106.1374512509729; Mon, 22 Jul 2013 10:01:49 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <CAPTjJmoA4i=rzAunj8hbarx6G+NiGyb=sHYFwDyE-Yyt-RsetQ@mail.gmail.com>
References <44c11575-2481-4220-9d3c-b53879e9cd8f@googlegroups.com> <0b359a38-4f8a-49c4-95f1-778865ce894a@googlegroups.com> <CAPTjJmoA4i=rzAunj8hbarx6G+NiGyb=sHYFwDyE-Yyt-RsetQ@mail.gmail.com>
Date Mon, 22 Jul 2013 12:01:49 -0500
X-Google-Sender-Auth Z4fTgCoYT35VcF2dwBUgSDSExAA
Subject Re: Homework help requested, thanks to everyone.
From Skip Montanaro <skip@pobox.com>
To Python <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4986.1374512520.3114.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374512520 news.xs4all.nl 15885 [2001:888:2000:d::a6]:55056
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51053

Show key headers only | View raw


John> Another project I thought of was a Pig Latin translator.  (But
do kids today
John> even know what Pig Latin is?  Am I showing my age?)

Chris> Even if they don't, they'll grok it no problem. It's simple enough.

Google for "Python pig latin" to see a lot of "prior art".

And it might be useful as a step as part of a word-based password generator. :-)

>>> words = open("/usr/dict/words")
>>> words = [word.strip() for word in words if len(word) == 5]
>>> len(words)
2194
>>> import random
>>> random.shuffle(words)
>>> words[0:4]
['live', 'skat', 'levy', 'cove']
>>> [makePigLatin(word) for word in words[0:4]]
['ivelay', 'atskay', 'evylay', 'ovecay']

:-)

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Homework help requested (not what you think!) John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-16 15:43 -0700
  Re: Homework help requested (not what you think!) David Hutto <dwightdhutto@gmail.com> - 2013-07-16 19:51 -0400
  Re: Homework help requested (not what you think!) Joel Goldstick <joel.goldstick@gmail.com> - 2013-07-16 20:53 -0400
  Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 10:40 +1000
    Re: Homework help requested (not what you think!) albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-07-18 12:47 +0000
      Re: Homework help requested (not what you think!) Gene Heskett <gheskett@wdtv.com> - 2013-07-18 09:38 -0400
  Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 11:34 +1000
  Re: Homework help requested (not what you think!) alex23 <wuwei23@gmail.com> - 2013-07-17 16:35 +1000
    Re: Homework help requested (not what you think!) PythonAB <python@rgbaz.eu> - 2013-07-17 10:31 +0200
  Re: Homework help requested (not what you think!) Steven D'Aprano <steve@pearwood.info> - 2013-07-17 06:51 +0000
  Re: Homework help requested (not what you think!) Joshua Landau <joshua@landau.ws> - 2013-07-17 09:33 +0100
  Re: Homework help requested (not what you think!) Neil Cerutti <neilc@norwich.edu> - 2013-07-17 13:20 +0000
    Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-17 23:29 +1000
      Re: Homework help requested (not what you think!) Neil Cerutti <neilc@norwich.edu> - 2013-07-17 13:55 +0000
        Re: Homework help requested (not what you think!) Chris Angelico <rosuav@gmail.com> - 2013-07-18 00:05 +1000
      Re: Homework help requested (not what you think!) alex23 <wuwei23@gmail.com> - 2013-07-18 12:09 +1000
  Re: Homework help requested (not what you think!) Aseem Bansal <asmbansal2@gmail.com> - 2013-07-17 21:57 -0700
  Re: Homework help requested (not what you think!) Beth McNany <beth.mcnany@gmail.com> - 2013-07-17 18:03 -0400
  RE: Homework help requested (not what you think!) Joseph Clark <joeclark77@hotmail.com> - 2013-07-18 08:46 -0700
  Homework help requested, thanks to everyone. John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-21 13:49 -0700
    Re: Homework help requested, thanks to everyone. Chris Angelico <rosuav@gmail.com> - 2013-07-22 10:25 +1000
      Re: Homework help requested, thanks to everyone. Roy Smith <roy@panix.com> - 2013-07-21 20:57 -0400
    RE: Homework help requested, thanks to everyone. Joseph Clark <joeclark77@hotmail.com> - 2013-07-21 20:10 -0700
      PyGLet on Python 3 John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-22 23:24 -0700
        Re: PyGLet on Python 3 Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-25 09:35 -0400
          Re: PyGLet on Python 3 John Ladasky <john_ladasky@sbcglobal.net> - 2013-07-25 15:27 -0700
    Re: Homework help requested, thanks to everyone. Skip Montanaro <skip@pobox.com> - 2013-07-22 12:01 -0500
    Re: Homework help requested, thanks to everyone. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-07-22 19:39 -0400

csiph-web