-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a39feec
Showing
4 changed files
with
681 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#program to create Madlib game for kids | ||
#i -name1, location, liquid, object1 | ||
#p -get inputs from the user and concatenate them into a line of the story | ||
#o -a funny story | ||
#declare variables | ||
name1="" | ||
location="" | ||
liquid="" | ||
object1="" | ||
print("Welcome to Madlib 150") | ||
|
||
#get input from users keyboard | ||
name1=input("What is the name of your best friend?") | ||
location=input("What is your favorite place to play?") | ||
liquid=input("What is your favorite drink?") | ||
object1=input("What is something important to you?") | ||
|
||
#output a story | ||
print("Jack and",name1) | ||
print("Went up the",location) | ||
print("To fetch a pail of",liquid) | ||
print("Jack fell down") | ||
print("And broke his",object1) | ||
print("And", name1,"came tumbling after") |
Oops, something went wrong.