Skip to content
← Back to Community
Can You guys make a mad lib??
Profile icon
bellabonura21

Start by typing out your Mad Libs fill-in-the-blank story in a word processing document. Make it as creative as possible! Identify whether your blanks should be filled by nouns, verbs, adjectives, or adverbs. Your story should include at least 10 blanks.
Next, transform your story into one big Python print statement in REPL.it, using variables in place of the blanks.
Finally, create the variables you need for your template by putting them at the top of your program. You should use input statements to make the game interactive.
Test out your program thoroughly, fixing any syntax errors or bugs that arise. Once you are happy with it, take a screenshot of your code actually being run.
Copy and paste your code into the same document where you wrote your fill-in-the-blank story, so that you have the regular fill-in-the-blank version and the code version.
Have a friend or family member try your Mad Lib (the typed or the coded version). Record yourself reading the result.
Submit your screenshot, your document, and your recording.

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
Profile icon
pumpkinpie229
Profile icon
bellabonura21
Comments
hotnewtop
Profile icon
InvisibleOne

First off, I would use Python 3. And it would look something like this:

import os noun1 = input("Noun: ") noun2 = input("Noun: ") action1 = input("Action: ") action2 = input("Action: ") #and so on os.system('clear') print("One day a coder named " + noun1 + " and his friend " + noun2 + " wanted to make a cool mad libs program. So " + noun1 + " did " + action1 + " while " + noun2 + " did " + action2 + ".")
Profile icon
bellabonura21

Thanks!

Profile icon
InvisibleOne