"""author: @pythonpips"""

foo = []

if not foo:
    print('list is empty')

# outputs: list is empty
How to Check Empty List in Python

Subscribe to our newsletter