Google Groups Home
Help | Sign in
Message from discussion Python limericks (was Re: Text-to-speech)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Michael Spencer  
View profile
 More options Mar 22 2005, 8:12 pm
Newsgroups: comp.lang.python
From: Michael Spencer <m...@telcopartners.com>
Date: Tue, 22 Mar 2005 17:12:50 -0800
Local: Tues, Mar 22 2005 8:12 pm
Subject: Re: Python limericks (was Re: Text-to-speech)
How about a category for executable limericks?

Here's one to get the ball rolling:

# voice only the alphanumeric tokens

from itertools import repeat
for feet in [3,3,2,2,3]:
     print " ".join("DA-DA-DUM"
     for dummy in [None]
for foot in repeat("metric", feet))

Michael

P.S. I know 'three' doesn't rhyme.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google