A fun word game that prompts the user for nouns, verbs, adjectives, and adverbs, then inserts them into a story template to create results.
python madlibs.py- String interpolation with f-strings
- Collecting multiple user inputs
- Story templates with placeholder variables
- Creative text generation
- Replay loop
You will learn string formatting techniques and how to build template-based text generation systems.
08-mad-libs/
README.md
madlibs.py
Welcome to Mad Libs!
--------------------
Enter a noun: elephant
Enter a verb: danced
Enter an adjective: purple
Enter an adverb: graciously
The purple elephant danced graciously through the park.
Everyone stopped to watch the elephant perform!