---
title: "I No Longer Like Python's Boolean Comparisons"
canonical: "/2017/08/21/i-no-longer-like-falsy-comparisons/"
date: "2017-08-21"
author: "Alok Singh"
tags: []
---


``` {.python}
1 or 2 # returns 1, not True
(1 or 1) == True # returns False
```

You spend half your life doing Boolean algebra and then Python just has
to come and mess it all up.
