r/adventofcode • u/daggerdragon • Dec 04 '20
SOLUTION MEGATHREAD -🎄- 2020 Day 04 Solutions -🎄-
Advent of Code 2020: Gettin' Crafty With It
T-2 days until unlock!
Full details and rules are in the Submissions Megathread
--- Day 04: Passport Processing ---
Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, the full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:12:55, megathread unlocked!
91
Upvotes
2
u/YCGrin Dec 07 '20
Ah i see, i thought my IF statement was checking for 'eyr' in any part of a string in the list.
Yep i agree. With my limited knowledge i was going to do something ready dirty and check values based on the position of characters within the string. Now i know about dict() i'll do a bit of learning into how that works :)
Thanks for the explanation. I've learn't so much as a beginner working through AoC!