Skip to content

Instantly share code, notes, and snippets.

@hronecviktor
Created September 30, 2013 14:45
Show Gist options
  • Save hronecviktor/6764852 to your computer and use it in GitHub Desktop.
Save hronecviktor/6764852 to your computer and use it in GitHub Desktop.
poetry!
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