Just One Python Minute! - Booleans and Truthiness

Written by Jordan H.

A new segment I’m trying out called ONE PYTHON MINUTE!

I take a minute (or 2, depending) to talk very briefly about a Python topic.

This week it’s Booleans (bool) and truthiness!

You probably already know about True and False as boolean values, and you might also know that None can be evaluated as a boolean “False.” This is a concept known as “Truthiness.”

But any type can have “Truthiness” to it. Like a list, dict, string, or number.

Take some time this week to experiment wit this concept in the Python console.

As always, please share and subscribe. You can follow @TheSrcRr at Twitter.

Did you like this article?

Did you know I'm available for hire?

Send me an email here: hireme@jordanhewitt.pro

Or connect with me in Wire: @nswered