python list empty method code example
Example 1: empty list in python
# Python program to declare
# empty list
# list is declared
a = []
Example 2: python empty list
if not a:
print("List is empty")
# Python program to declare
# empty list
# list is declared
a = []
if not a:
print("List is empty")