r/learnpython • u/CleverBunnyThief • Dec 02 '19
Advent of Code (AoC) 2019 starts today!
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
These puzzles are a great way to practice your Python and problem solving skills.
Edit: added description from AoC site.
336
Upvotes
2
u/Bobbias Dec 02 '19
Day 2 was pretty fun. Ended up brute forcing the answer for part 2 by hand though. Once I caught on to how the 2 numbers interacted it was pretty quick to test different ones, though maybe I should automate brute forcing it later just for the hell of it.
Did learn how to send cookies with urllib requests though, because I figured it would be better practice to grab the data off the site rather than just save it to a file.
I'll be sure to cache the results when I make my brute force version of day 2 part 2 though.