Checking for an empty list in Python

Published: 21 August 2024
on channel: Python Morsels
188
20

Python programmers typically check for empty lists by relying on truthiness.

Article at

More screencasts at

00:00 Checking the length of a list
00:22 Evaluating the truthiness of a list
01:13 Comparing for equality with an empty list
02:10 Truthiness checks are non-emptiness checks on lists


Watch video Checking for an empty list in Python online without registration, duration 02 minute 24 second in high hd quality. This video was added by user Python Morsels 21 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 18 once and liked it 2 people.