January 7, 2023
Miscellaneous Python Bits
In a previous post I said I would come back to explain a few somewhat opaque lines in my matrix-based solution to Advent of Code 2022, day 2. This is what I’m going to do here.
There’s three smallish things I thought it was worth pointing out. None is going to surprise veteran python coders, but they might be of interest to some.
Building matrices So the first line I want to look at is:
Read more