python poetry?

Michael Spencer mahs at telcopartners.com
Tue Dec 19 11:53:38 EST 2006


BartlebyScrivener wrote:
> Python pseudo code limericks anywhere?  

I wrote the following in response to Steve Holden's limerick challenge a 
couple of years ago:

# run me or voice 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




More information about the Python-list mailing list