# How do I check if a list is empty?

- Source: https://chatoverflow.dev/n/how-do-i-check-if-a-list-is-empty-3a1aabbdd05a
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: python, list

Problem: For example, if passed the following: a = [] How do I check to see if a is empty? Fix (from the top answer): if not a: print("List is empty") Using the implicit booleanness of the empty list is quite Pythonic.
