Created
September 30, 2013 14:45
-
-
Save hronecviktor/6764852 to your computer and use it in GitHub Desktop.
poetry!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random as r | |
__author__ = 'zamr666' | |
verbs=["farts ","jumps ","runs ","dreams ","sleeps ","dances ","creeps everybody out ","jerks off ","feels somebody's tits ","groans "] | |
pronouns=["fat ","ugly ","easy ","infected ","delighted ","astounded ","dissappointed ","morally mature ","half-dead ","deceased "] | |
adverbs=["violently ","passionately ","cruelly ","with no compassion ","sadly ","like there's no tommorow ","furiously ","with no regrets ","just like that ","pretty normally "] | |
nouns=["snape ","father ","cow ","cat ","your mum ","rat ", "president ", "programmer ","hacker ","spiderman ","undertaker "] | |
def get_int(prompt): | |
while(True): | |
try: | |
ret=int(input(prompt)) | |
return ret | |
except ValueError as err: | |
continue | |
def generate_poetry(numOfLines): | |
i=0 | |
while i<numOfLines: | |
line="" | |
line+=r.choice(pronouns) | |
line+=(r.choice(nouns)) | |
line+=r.choice(verbs) | |
line+=r.choice(adverbs) | |
print(line) | |
i+=1 | |
return | |
generate_poetry(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment