/r/Python's 2021 Advent of Code
It's (almost) December, which means it's time for Advent of Code!
Advent of Code is a yearly advent calendar where there's a new programming puzzle each day. They vary in difficulty and don't require a computer science background to solve. You can solve the problems using any programming language you like, so while we love python here, you can take this as an opportunity to explore other languages. If you have trouble with one of the puzzles, don't worry, another day's puzzle might be easier for you!
This year we're joining our sister community, /r/LearnPython, for a shared leaderboard. The /r/Python and /r/LearnPython leaderboard code is: 1179846-33292986
If you want to talk about your solutions, please state which day the solution is for, and then put the solution under the spoiler tag. Please be sure to format your code for reddit or host it on a code hosting site such as GitHub or GitLab. Additional discussion of the daily puzzles can be found on the Advent of Code Subreddit: /r/adventofcode
We hope you take this time as a chance to have some fun solving these puzzles! Good luck!
32 comments · 98% upvoted · other discussions
Really enjoying the challenges so far! Trying to do it without using external libraries. So far numpy would have been very useful. They do seem to be progressively more challenging so I hope I can manage to finish all.
C6H5CH3 1 points · Dec 2021
I have only been allowing myself numpy. And specifically methods which I am confident I could recreate in vanilla python just slower.
Good on you for recreating all that functionality :)
Really have enjoyed so far.
Oh and icecream for debugging.
Vipulkunwar 1 points · Dec 2021
Do you've any suggestions I'm joining the first time?
Armaliite 1 points · Dec 2021
Maybe you could have a look at this article: https://realpython.com/python-advent-of-code/
Try to solve the example first before you move on to all the data.
Vipulkunwar 1 points · Dec 2021
Thank you for your suggestions. I'll do it.