Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.
Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.
For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.
It makes sense to start learning by reading and watching videos about fundamentals and how things work.
Data Science and Machine Learning - 16 wks
Full-Stack Software Developer - 16w
Search from all Lessons
Curated list of small interactive and incremental exercises you can take to get better at any coding skill.
Curated section of projects to build while learning with simple instructions, videos, solutions, and more.
Guides on different topics related to the technologies that we teach in our courses
Lets create a compression algorithm 🤯 It sounds hard but it's something achievable for almost anyone.
Create an algorithm that given a string, replaces its words matching the
symbols dictionary keys and replaces them with their respective values on the same dictionary.
|→ should become →|
The current project has 3 main files:
|compress.py||Contains the algorithm to compress the content, it has a function "compress" that receives the raw text and returns the compressed version of it|
|decompress.py||It's very similar to |
|app.py||This is entry file, and there is no need to update it, it imports and uses the other two files|
app.pyand follow the algorithm with your brain, review the compress.py and decompress.py files to understand where your solution must be implemented.
python3 app.pyand undestand what is the output and why.
This project comes with the necessary files to start working, but you have two options to start:
a) Open this link in your browser with gitpod: https://gitpod.io#https://github.com/breatheco-de/exercise-compression-algorithm-python.git
b) You can clone this repository on your local computer:
Type the following in the command line:
You should get a response similar to this:
💡 Important: Remember to create a new repository, update the remote (
git remote set-url origin <your new url>), and upload the code to your new repository using
By adding more words to the
symbols dict you can achieve more compression power.
Try to re-do the algorithm to achieve a compression power above 15% with no data lost without just adding more words.