DEV Community

Cover image for Codecademy Python Final Project
Corey
Corey

Posted on

1

Codecademy Python Final Project

Hello everyone!This is my Python final project for Codecademy. This is my first project where I used python and bash on my own computer. I decided to do a small trivia game where you would need to answer 10 questions and could only get one wrong before the game would end. I have experience making a couple games in C# with Unity, but I've never made one with the terminal.

I didn't want to worry about making the game too complicated, instead I wanted to make one that did a couple of interesting things in the code (for me at least) that would show a little bit of more advanced code than just simply using functions. These included having random questions chosen from an array, randomizing the answer choices, and removing the questions from the array once they were asked so there would be no repeats. I also made the code so I could easily remove or add questions and not need to change the functions at all. I also made it so the only line of code besides the functions and variables was game_start() and compartmentalized it to work from there.

While this is definitely a minimum viable product, I am happy with how it turned out. If I were to focus on content I would have added randomized responses to correct or incorrect answers as well as a bit more story, but that was not the focus of this project so I wanted to practice not over reaching and considering it complete.

Below is a link to the code if you would like to take a look, I would love to hear what you think! (positive or negative, I'm a big boi and can handle criticism)
https://github.com/TheHamhams/Python_Game

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay