Here are my solutions for advent of code 2021. They won't be the most polished solutions, but they should work.
I'll be using Python 3.10.
First time using the new match
statement in 3.10 🎉.
I liked how clean this solution looked.
namedtuple
s really made the code much easier to work with.
The first solution that I'm not very happy with (but hey, it works 🤷♂️). The number of solutions is narrowed down from 7!
to 8
for each line, then they're tested individually.