forked from Kate028/Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMadLib.py
26 lines (20 loc) · 998 Bytes
/
MadLib.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
"""Mab lib is one of the python projects for beginners.The input could be anything, an adjective, a noun, a pronoun, etc.
Once all the inputs are entered, the application will take the data and arrange the inputs into a story template form."""
# concepts being used:
# string concatenation
# formatted output
# value = "Pythonista" # some string variable
# string formatting
# print("I am a " + value)
# print("I am a {}".format(value))
# print(f"I am a {value} ")
noun1 = input("What should I call you : ")
noun2 = input("Who is your friend: ")
adj = input("Give me an Adjective: ")
verb1 = input("and a Verb: ")
verb2 = input("one more Verb: ")
fav_hero = input("umm! Your Favorite Hero: ")
madlib = f"I am {noun1} and I am a Pythonista. Python is so {adj}! It makes me so excited all the time because \
I love to {verb1}. Keep coding and {verb2} like you are {fav_hero}.{noun2} too like it and we both used to code all the time."
print(madlib)
# you can create as long story as you want!