How do I check if a list is empty? by Tarik if not a: print("List is empty") Using the implicit booleanness of the empty list is quite pythonic.