how to define a empty list in python code example
Example 1: py create empty list
# declare list
a = []
print("Values of a:", a)
print("Type of a: ", type(a))
print("Size of a: ", len(a))
# Output:
# > Values of a: []
# > Type of a: <class 'list'>
# > Size of a: 0
Example 2: python empty list
if not a:
print("List is empty")