python check something is empty list code example
Example 1: empty list in python
# Python program to declare
# empty list
# list is declared
a = []
Example 2: check if empty item in list python
if '' in list:
# do stuff
# Python program to declare
# empty list
# list is declared
a = []
if '' in list:
# do stuff