Checking for True or False

Sebastian Witowski
5 min readFeb 2

How do you check if something is True in Python? There are three ways:

The “bad” ways are not only frowned upon but also slower. Let’s use a simple test:

Sebastian Witowski

Python consultant and freelancer at switowski.com. Writes about productivity, tools, Python, and programming best practices.