Anyone can write code that works on the example. Engineering is the rest of the job: knowing that it keeps working, finding out why it does not, keeping it fast when the data grows, reading other people’s code without missing the one dangerous line, finding which change broke the build, trusting nothing that arrives from outside, and deciding when something is ready to ship. Those habits are what teams pay for.
This is the fourteenth season of Sabi Logistics’ story, told from the engineering floor. Ifeoma, Emeka, Chidi, Halima and Musa bring you problems from the day-to-day work. Each case gives you generated data or code, a starter script, and checks that read what your Python leaves behind. Three kinds of check are new: your unit tests are run against copies of the code that each hide one bug, your function is run under a line counter so that a slow method fails even when its answer is right, and a search is graded on how many steps it needed. Functions are also run on hidden data, so a solution that fits only the sample fails.
You need nothing installed. Everything uses the Python standard library and runs in your browser (about 10 MB the first time). All code, data and people are invented: never use real ones.
What you need first
The case files use Python (it runs in your browser, nothing to install). You should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.
Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the rules and edge cases behind the real tools, and how to automate an audit with a script. Each lesson ends with a box of the real commands that you would type on a real system.
What you will learn
- Test the rule: unit tests with hand-worked answers, boundaries, and mutants that show what your tests miss.
- Fix the bug: a report that runs and lies, found with a small case by hand, then guarded by tests.
- Make it scale: from comparing every pair to one pass with a set, measured in lines run.
- Review code: real bugs (injection, secrets, swallowed errors, None, shared defaults), and no false alarms.
- Bisect: binary search in a history, and the number of steps it saves.
- Versions: numbers not text, ranges, pre-releases and bumps.
- Validate input: types, ranges, and the traps in Python and JSON.
- Build a cache: a class with exact rules, eviction and edge cases.
- Gate the release: rules as code, exceptions in the open.
How it works
Each case is a call from someone at Sabi Logistics, a short brief, a lab with a starter script, a twist and a debrief that says what a senior engineer would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.
The capstone asks you to take a small piece of code of your own, make it trustworthy with tests, review, validation and a release rule, and say honestly what you could not check.