Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
coderYL2337 authored Mar 31, 2023
0 parents commit a39feec
Show file tree
Hide file tree
Showing 4 changed files with 681 additions and 0 deletions.
24 changes: 24 additions & 0 deletions MadlibGame.py
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")
Loading

0 comments on commit a39feec

Please sign in to comment.