For those of you who love their list and set comprehensions in #Python, there are also dict comprehensions! I showcased this pattern by filling my initial defaultdict that way to solve today's #AdventOfCode puzzle.
7:37 AM · Dec 15, 2020
1
1
7
Comprehensions are a very powerful tool in #Python in general. If you are not yet familiar with them, @realpython got you covered! A topic worth learning for everyone serious about Python.
realpython.com/list-comprehe…
1
0
1

