Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

08 - Mad Libs Story Generator

Python Difficulty: Beginner Phase

What It Does

A fun word game that prompts the user for nouns, verbs, adjectives, and adverbs, then inserts them into a story template to create results.

Run It

python madlibs.py

Core Concepts

  • String interpolation with f-strings
  • Collecting multiple user inputs
  • Story templates with placeholder variables
  • Creative text generation
  • Replay loop

What You Will Learn

You will learn string formatting techniques and how to build template-based text generation systems.

Project Structure

08-mad-libs/
  README.md
  madlibs.py

Example Output

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!