Skip to content

Commit c10af4b

Browse files
author
raghupathi321
committed
madlibgame
1 parent 19bea20 commit c10af4b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

madlib_game.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def madlib():
2+
noun1=input("Enter a noun: ")
3+
place=input("Enter a place: ")
4+
adjective=input("Enter an adjective: ")
5+
verb=input("Enter a verb:")
6+
preposition=input("Enter a preposition: ")
7+
noun2=input("Enter a noun: ")
8+
print(f"Once upon a time in {place}, there was a {adjective} {name1} who loved to {verb} {preposition} the {noun}.")
9+
if __name__=='__main__':
10+
madlib()

0 commit comments

Comments
 (0)