Write a creative program that asks the user for at least 5 words and an integer and then outputs a funny story using those inputs.
You will write this in a script called `madlibs.py`. Get creative with it! Come up with a fun short story and ask the user for funny inputs for that story.
-!- CODE language-text -!-What is your favorite animal? Hippo
What is an -ing verb? jumping
What is your least favorite fruit? Kiwi
What is your lucky number? 3
What is your favorite color? Blue
There once was a Blue Hippo that liked jumping 3 times in a row
before eating his favorite Kiwi.
CodeGrade is your virtual teaching assistant in your Python classroom. You teach, CodeGrade takes care of the rest.
Our 35 built-in fully automatically graded Introduction to Programming assignments are designed especially for middle school and high school coding education, in close collaboration with Harvard-Westlake School (Los Angeles, CA). You can start teaching Python at your school with confidence now. Or, easily scale your classroom with CodeGrade's tools.
Book a personal 30-minute demo now and we'll show you how to get started with CodeGrade in less than 1 hour!