DEV Community

Andrew Rawson
Andrew Rawson

Posted on

Python Terminal Recommendation Engine

Next up in the Codecademy CS Certification course is a recommendation engine. I wrote one that does a simple video game recommendation and returns 5 titles from one of 5 genres and allows the player to see a blurb about any of the titles from that list.

The previous project focused on something with practical application to my current line of work, a financial calculator for loans and savings dividends. This one was geared more towards a hobby that I find myself engaging with less and less as I get deep into learning about computer science: video games.

I sourced ratings for rankings from MetaCritic, but decided to use the player review scores rather than the reviewer scores for simplicity sake, as MetaCritic reports reviewer scores on a 100 scale and user scores on a 10 scale.

The app runs with graphs and vertices. I used dicts to store the keys and values for the games and ratings, as well as for blurbs. I wrote a helper to auto load the data into the graph for the main script.

This exercise also inspired me to start a personal portfolio project that will also use graphs, but allow me to work more with a TreeNode system as I haven't done much with that.

Image description

Github

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay