The Python programming language, tutorials, and more

260 330,557 32,230
articles words lines of code

Reverse-engineering the program from “Chronospatial Computer”, day 17 of Advent of Code 2024.

Today I learned how to use the Polars function pl.date_range to create date sequences with calendar-aware intervals between dates.

Solving “Bridge Repair”, from day 7 of Advent of Code 2024, in 4ms with Python with a simple deductive algorithm.