-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwerd poem_10_02_01.py
107 lines (81 loc) · 3.39 KB
/
werd poem_10_02_01.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
author: Hunter Stabler
DESCRIPTION: python poem generator
LICENSE:GNU General Public License
created August 28th 2018
"""
import random
# "list of exclamations"
exclamations = ["Howbowda", "Excellent","Wow", "Yeet", "Goodbye", "Hallelujah", "Nam Myoho Renge Kyo",
"He gave us some yogurt", "Kamehame ha", "Oh dear", "Yes",
"Ow", "Sup bibble", "Yip", "Okay", "Hola", "And so it will be",
"Hark"]
# "list of nouns"
nouns = ["savant", "sheeple", "weavel", "goober", "tuber", "owl", "bowels",
"carpet", "snack", "arch", "toenail", "horse hair", "compost", "casm",
"pocket", "dullard", "mallard", "listicle", "miracle", "awl",
"Demiurge", "mangosteen", "Timor", "pow wow", "detour","ShamWow"]
# "list of place nouns"
place_nouns = ["hind quarters", "AA meeting", "parking lot", "noise festival",
"Apalachians", "Zeta Reticuli", "ocean floor", "HoJo", "Dojo",
"onsen"]
# "list of verbs"
verbs = ["hover", "whack", "dabble", "immolate", "taste", "summon",
"channel", "throw", ]
# "list of adjectives"
adjectives = ["cold", "frumpy", "acrid", "sour", "toasty", "smarmy", "doty",
"spidery", "wispy", "angular", "sharp", "tiniest", "basic",
"omnipresent", "oracular", "miraculous", "super computer",
"awe inspiring", "analogue", "analogous", "teleological"]
# "list of adverbs"
adverbs = ["slinkily", "eagerly", "brutally", "unabashedly", "daily", "soon",
"outside", "underground","prophetically", "extremely",
"sardonically", ]
noun = random.choice(nouns)
second_noun = random.choice(nouns)
third_noun = random.choice(nouns)
fourth_noun = random.choice(nouns)
fifth_noun = random.choice(nouns)
verb = random.choice(verbs)
second_verb = random.choice(verbs)
third_verb = random.choice(verbs)
adjective = random.choice(adjectives)
second_adjective = random.choice(adjectives)
adverb = random.choice(adverbs)
second_adverb = random.choice(adverbs)
exclamation = random.choice(exclamations)
place_noun = random.choice(place_nouns)
##concatenation
#print "The " + adjective + ", " + second_adjective + " " + noun + " " + verb
#word poem
#print "The " + adjective + " " + noun + ""
## for loop to iterate through verbs
#i = 1
#for verb in verbs:
# whitespace = " " * i
# print whitespace + verb
# i = i + 1
for i in range(1,10):
def sentence_structure_1():
#string formatting
print " {ex}, The {adj} {n} {adv} {v}s a {sn} whilst the {tn} {sv}s a {fthn}.\
How can a {sa} {fn} {tv} in the {pn}?".format(adj=adjective,
n=noun, v=verb, sn=second_noun, tn=third_noun, sv=second_verb,
adv=adverb, ex=exclamation, pn=place_noun, sa=second_adjective,
fn=fourth_noun, fthn=fifth_noun, tv=third_verb)
def sentence_structure_2():
#string formatting
print " {ex}, The {adj} {n} {adv} {v}s a {sn} whilst the {tn} {sv}s a {fthn}.\
How can a {sa} {fn} {tv} in the {pn}?".format(adj=adjective,
n=noun, v=verb, sn=second_noun, tn=third_noun, sv=second_verb,
adv=adverb, ex=exclamation, pn=place_noun, sa=second_adjective,
fn=fourth_noun, fthn=fifth_noun, tv=third_verb)
sentence_structure_1()
sentence_structure_2()
#i = 0
#for noun in nouns:
# print nouns[i]
# i = i + 1
#" How can a {sa} {fn} {tv} in the {pn}? "