Skip to main content

Course

Python

PythonPart 2 of 7 · Chapter 4 of 4

What Counts as Empty, False, or Equal

Python will evaluate almost anything as true or false, including things that are neither. Feed in an empty list, the number zero, and the string that spells the word False, and see which ones the language actually treats as false.

Read first: Ordered Collections, Two Ways


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.