My First Poem Written in Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
#
###### Poem in Python #######
#################################
# by #
# José Ignacio Orlicki #
# therm000@gmail.com #
# 6th of April, 2011 - 02:49 PM #
#################################
# Compiling and printing nice poem
# Python 2.6.5
your_own_money = 'energy'
your_voice = 'thunder'
life = 'unborn alphabet of desires'
pain = 'unborn'
def dreaming(state, but):
try:
yield your_voice
except:
for coins in your_pocket:
print your_own_money
finally:
with your_eyes as food:
print __doc__ and poetry
pass
gestures = 'change'
for people in the_street:
lambda signs: signs and gestures
exit()
while life.startswith( pain ):
while False or None:
continue
print None or __name__+' '+your_voice
life = life.replace('desires','desire').replace(' alphabet of','')
life = life.replace('un','')
dreaming(None or True, not False )
pain is not your_voice
print life
|
It would be nice if it output something sensible when the recipe was run. After wrapping the print statement arguments in parenthesis for Python 3.2, all it showed on standard output was this: