ActiveState Code

Recipe 496781: Romantic love poem in Python


This recipe was writen for my beautiful girl...however signification of this code is universal

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
...

if you in (depressed, sadness, resignation):
    print 'me, my sweetheart'
if feel(you) is 'lonely' or feel(you) is 'neglected':
    talk_me(this)
while always:
    I.take_care(you)
    if you.love() is not me:
        # I will follow in the madness
        # I will 
        break # down...
for emotion in my.heart:
    try:
        your.lover = me
    except:
        your.best_friend = me
if you.hate(me):
    love(me)
elif I.annoying():
    love(me)
else:
    love(me, how='deeply', when='now') 

... 

Discussion

This recipe must be used in a proper environment, in a proper scope. Implementation of "love" function is user-dependent. Is demanded that person objects must have compatible interfaces. I'm feel a need of generalization this code for any special 'love' situation...

Comments

  1. 1. At 7:02 p.m. on 8 jan 2008, Caner Caner said:

    excellent :)

Sign in to comment