""" Lecture 9 slide 5 Carry out a madlib game [Mary] had a little [lamb], its fleece was [white] as [snow]. Everywhere that [Mary] went, the [lamb] was sure to [go] """ def get_word(prompt): word = input("Enter " + prompt + ": ") return word def show_madlib(name, animal, colour, compare_thing, go_word): stars = "*" * 35 print(); print(stars) print(name + " had a little " + animal + ",") print("its fleece was " + colour + " as " + compare_thing + ".") print("Everywhere that " + name + " went,") print("the " + animal + " was sure to " + go_word + ".") print(stars) print() def carry_out_madlib(): prompt_name = "a name" prompt_animal = "an animal" prompt_colour = "a colour" prompt_thing = "a plural noun (thing)" prompt_action = "an action" carry_out_madlib()