Peter Norvig posted his Python solutions to the Advent 2024 problems. I've long enjoyed Peter's Python code as concise, elegant, and clever. I learn something every time by looking at how he solves problems. Recommended even if you've been coding in Python for a while:
https://github.com/norvig/pytudes/blob/main/ipynb/Advent-2024.ipynb
Peter is also a well-known and well-respected AI old-timer with deep knowledge in the field. For example:
https://en.wikipedia.org/wiki/Artificial_Intelligence:_A_Modern_Approach
And if you're interested in more Python examples, he has a lot of them:
https://github.com/norvig/pytudes
I very much enjoyed the Wordle and poker notebooks among many others.