Marmosets Protesting to Keep Tacos in Trader Joe’s

This is a story about coding my first game.

A few months ago my coworker encouraged me to start learning python.

Originally I was introduced to python ‘turtle’, a fun little icon that you can program to take many different actions.

If I wanted the turtle to draw a triangle with a different colored line for each side of the triangle I could do that.

It was a new experience and sparked an interest in me. I really enjoyed being able to build and immediately see an action executed so much so that I wanted to share that joy with others.

So I began to film a series called “Python For Absolute Beginners“, an ongoing series where I film short videos and write content going over different coding topics in Python. All while in the process really solidify my understanding of the basics of coding.

Now where do the protesting Marmosets Protesting come into play you may be asking?

Today, I crossed another landmark in my coding journey. I coded my first game, with the help of some of my colleagues.

I’ve pasted below the code for a game of MadLibs in Python 3 – hopefully, it can be of some help to you!

STORY = “This morning %s woke up feeling %s. ‘Today I’m feeling light as a %s!’ Outside, a bunch of %ss were protesting to keep %s in Trader Joe’s. They began to %s to the rhythm of the %s, which made all the %ss very %s. Concerned, %s texted %s, who flew %s to %s and dropped %s in a giant pond of frozen %s. %s woke up in the year %s, in a world where %ss ruled the world.”

print (“Mad Libs has started”)

name = input (“Enter a name: “)

adjective1 = input (“Enter an adjective: “)
noun1 = input (“Enter a noun: “)
adjective3 = input (“Enter an adjective: “)

verb = input (“Enter a verb:”)

noun2 = input (“Enter a noun: “)
noun3 = input (“Enter a noun: “)

animal = input (“Enter an animal: “)

food = input (“Enter a food: “)

fruit = input (“Enter a fruit: “)

superhero = input (“Enter a superhero: “)

country = input (“Enter a country: “)

dessert = input (“Enter a dessert: “)

year = input (“Enter a year: “)

print (STORY % (name, adjective1, noun1, animal, food, verb, noun2, fruit, adjective3,name, superhero, name, country, name, dessert, name, year, noun3
))

Here’s one of my favorites stories from this game:

This morning Lydia woke up feeling colorful. ‘Today I’m feeling light as a possum!’ Outside, a bunch of Marmosets were protesting to keep tacos in Trader Joe’s. They began to eating to the rhythm of the pineapple, which made all the watermelons very hungry. Concerned, Lydia texted The Flash, who flew Lydia to ukraine and dropped Lydia in a puddle of frozen cheesecake. Lydia woke up in the year 1992, in a world where sandles ruled the world.

Leave a comment