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

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

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