Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
python valentine
nurple11
1/27/2008 9:37:00 PM
Slightly off-topic, but this is the best Valentine's Day card I've
seen in a while:
http://unholidaycards.com...
I think I just might get some for my lab.
#!/usr/bin/env python
from relationships import *
from alcohol import shot, beer
def valentines_day(self):
if self.dating:
if self.money == 0:
self.dating = False
elif self.num_prev_dates == 0:
self.money -= dinner()
self.money -= pointless_gift()
else:
self.money -= dinner()/sqrt(self.num_prev_dates)
if randInt(self.num_prev_dates):
self.money -= pointless_gift()/self.num_prev_dates
elif self.married:
if self.years_married < 5:
self.money -= dinner()/(self.years_married ** 2)
else:
pass
else:
while self.blood_alcohol < .08:
self.blood_alcohol += beer()
while self.blood_alcohol < .22:
self.blood_alcohol += shot()
sleep(86400)
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
python valentine
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password