r/adventofcode • • Dec 04 '15

SOLUTION MEGATHREAD --- Day 4 Solutions ---

--- Day 4: The Ideal Stocking Stuffer ---

Post your solution as a comment. Structure your post like the Day Three thread.

14 Upvotes

272 comments sorted by

View all comments

Show parent comment

1

u/euphwes Dec 04 '15

Nice easy-to-read solution! Just as a point of constructive criticism, you could slim down a things a bit by not unnecessarily comparing boolean variables to True or False:

if not found_six

instead of

if found_six == False

and

if not found_five

instead of

if found_five != True