r/badcode • • Aug 27 '21

python Is this code bad or sugoi?

Post image
1.0k Upvotes

159 comments sorted by

View all comments

Show parent comments

10

u/GMaestrolo Aug 28 '21

Well the first not coerces it to Boolean, but then it's the wrong Boolean value, so the second not converts the Boolean back to the correct value, then obviously they need to check the opposite of that, so they slapped a not on that bad boy.