diff --git a/labs/lab02-madlib.md b/labs/lab02-madlib.md index aeb8303..4485dc9 100644 --- a/labs/lab02-madlib.md +++ b/labs/lab02-madlib.md @@ -1,13 +1,16 @@ # Lab 2: Mad Libs ---- -Quicklinks -- [Intro to Programming](https://github.com/PdxCodeGuild/IntroToProgramming) -- [Labs](https://github.com/PdxCodeGuild/IntroToProgramming/tree/master/labs) -- [Slack Channel](https://app.slack.com/client/TH5A28SJ0/CH6DE8QK1) +- [Back to Syllabus](https://github.com/PdxCodeGuild/IntroToProgramming#top) - [Python Tutor](http://pythontutor.com/visualize.html#mode=edit) ---- -Write a simple program that prompts the user for several inputs then - prints a [Mad Lib](https://en.wikipedia.org/wiki/Mad_Libs) as the result. + +## Goal + +Write a simple program that prompts the user for several inputs then prints a [Mad Lib](https://en.wikipedia.org/wiki/Mad_Libs) as the result. + +## Key Concepts + +- Variables +- String formatting +- Handling user input ## Instructions @@ -35,19 +38,9 @@ Write a simple program that prompts the user for several inputs then >>> - Transform trilithium crystals into biochemical material. ``` - ## Advanced -* Make a functional solution that utilizes lists. For example, ask the user for 3 adjectives, separated by commas, then use the .split() function to store each adjective and later use it in your story. -* Add randomness! Use the random module, rather than selecting which adjective goes where in the story. - +- Make a functional solution that utilizes lists. For example, ask the user for 3 adjectives, separated by commas, then use the .split() function to store each adjective and later use it in your story. +- Add randomness! Use the random module, rather than selecting which adjective goes where in the story. ## Super Advanced -* Make it a repeatable game. Once you're done prompting the user for words, prompt them for whether they'd like to hear the story. Use a while loop to keep asking if they'd like to hear the story again until the answer is 'no'. You could then ask them if they'd like to make another story, and so on. - ------------- - -## Key Concepts - -- Variables -- String formatting -- Handling user input +- Make it a repeatable game. Once you're done prompting the user for words, prompt them for whether they'd like to hear the story. Use a while loop to keep asking if they'd like to hear the story again until the answer is 'no'. You could then ask them if they'd like to make another story, and so on.