r/adventofcode • • Dec 04 '20

Spoilers How not to write an if statement

Post image
164 Upvotes

41 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Dec 04 '20

I guess something like and not bool([check_passport[4][i] not in hair_couler for i in range(1,7)]) would work... why you would do that tho... idk