Skip to content

Commit 8ef255a

Browse files
committed
Mad libs game
1 parent 05e351a commit 8ef255a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

madlibs.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
print("WELCOME TO MAD LIBS!!!")
2+
import time
3+
4+
playagain = "y"
5+
6+
while playagain == "Y" or playagain == "y" or playagain == "yes":
7+
noun = input ("Enter a noun...")
8+
p_noun = input("Enter a plural noun...")
9+
noun2 = input("Enter a noun...")
10+
place = input ("Enter a noun...")
11+
adj = input("Enter a adjective...")
12+
noun3 = input ("Enter a noun...")
13+
14+
print("------------------------------------")
15+
print("Be kind to your "+noun+"-footed "+p_noun)
16+
print ("For a duck may be somebody's", noun2,",")
17+
print ("Be kind to your",p_noun,"in",place)
18+
print ("Where the weather is always",adj,".")
19+
print ()
20+
print ("You may think that is this the",noun3,",")
21+
print ("Well it is.")
22+
print ("------------------------------------------")
23+
24+
playagain = input ("Do you wanna play again??y/n")
25+

0 commit comments

Comments
 (0)