Welcome, guest | Sign In | My Account | Store | Cart

My First Poem Written in Python

Python, 45 lines
 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

1 comment

Stephen Chappell 12 years, 11 months ago  # | flag

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:

__main__ thunder
born desire
Created by thermo on Wed, 6 Apr 2011 (Artistic)
Python recipes (4591)
thermo's recipes (1)

Required Modules

  • (none specified)

Other Information and Tasks