103
SOLUTION MEGATHREAD-š- 2022 Day 2 Solutions -š-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 4 days, 4 hours after) by daggerdragon to /r/adventofcode (134.8k)
NEW AND NOTEWORTHY
- All of our rules, FAQs, resources, etc. are in our [community wiki](/r/adve...
since 3 years, 1 month ago
2 of 2
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


nice and short! you could save one line by doing
game = [x.strip() for x in open("day02.txt").readlines()]Oh thank you!! That was bugging me because that first line feels like such a waste. Iām gonna try that for the next few puzzles.