Learning Python through projects: MadLibs
A simple Madlibs style game story where the user is prompted to input various text in order to complete a silly story.
- Prompts user for input
- Prints story with user input
- The user is introduced to the project and prompted for input.
- The story is generated with user input and printed in the console.
- Clone this repository or copy the code into a file named
madlibs.py. - Install Python (version 3.6 or later).
brew install python3 - If using VS Code - set up a virtual environment (https://code.visualstudio.com/docs/python/python-tutorial)
- Activate the virtual environment - if necessary
source .venv/bin/activate - Run the script in your terminal:
python3 madlibs.py