Skip to content

Commit a864d84

Browse files
authored
Merge pull request #1 from Iamabitch/Iamabitch-patch-1
Create MadlibGenerator.py
2 parents 1502e08 + f3e9d1d commit a864d84

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Basic Scripts/MadlibGenerator.py

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
""" Mad Libs Generator
2+
3+
----------------------------------------
4+
5+
"""
6+
7+
#Loop back to this point once code finishes
8+
9+
loop = 1
10+
11+
while (loop < 10):
12+
13+
# All the questions that the program asks the user
14+
15+
noun = input("Choose a noun: ")
16+
17+
p_noun = input("Choose a plural noun: ")
18+
19+
noun2 = input("Choose a noun: ")
20+
21+
place = input("Name a place: ")
22+
23+
adjective = input("Choose an adjective (Describing word): ")
24+
25+
noun3 = input("Choose a noun: ")
26+
27+
#Displays the story based on the users input
28+
29+
print ("------------------------------------------")
30+
31+
print ("Be kind to your",noun,"- footed", p_noun)
32+
33+
print ("For a duck may be somebody's", noun2,",")
34+
35+
print ("Be kind to your",p_noun,"in",place)
36+
37+
print ("Where the weather is always",adjective,".")
38+
39+
print ()
40+
41+
print ("You may think that is this the",noun3,",")
42+
43+
print ("Well it is.")
44+
45+
print ("------------------------------------------")
46+
47+
# Loop back to "loop = 1"
48+
49+
loop = loop + 1

0 commit comments

Comments
 (0)