Checking for Nothing

Python has a way to depict the absence of a value. Let's learn about python keyword 'None'

Because we are talking about statements that evaluate to True, we probably need to cover what evaluates to False. Python has the keyword False which I’ve mentioned a few times. However an empty string, tuple or list also evaluates to False. There is also another keyword that basically evaluates to False which is called None. The None value is used to represent the absence of value. It’s kind of analogous to Null, which you find in databases. Let’s take a look at some code to help us better understand how this all works:

Get hands-on with 1200+ tech skills courses.