#!/usr/bin/python #Story generation by segments #Nick Montfort #2008-11-29, 30 #Thanks, BC from random import choice b=['The police officer nears the alleged perpetrator','The shopper looks at the cashier','The babysitter approaches the child',"The student knocks on the teacher's door",'The indigent turns to the librarian','The driver calls to the pedestrian','The rescuer locates the survivalist'] m=['berates','begs','confesses to','asks for advice from','seeks help from','expresses sympathy to','smacks','defies','surrenders to','hugs'] e=['They feel better after a good cry','They pray together','They wait in silence','They break into laughter','Rude gesture meets rude gesture','One ends up with a broken will','Six years later, neither one remembers the incident','The more powerful one triumphs','The underdog ends up on top','Each one learns something'] while True: print "\nHere's the story:\n"+choice(b)+'.\n'+choice(['He','She']), choice(m), choice(['her.','him.'])+'\n'+choice(e)+'.' raw_input('The end.')