Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
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.

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google