empty array in python code example
Example 1: intialize array to certain lenght python
>>> lst = [None] * 5
>>> lst
[None, None, None, None, None]
Example 2: python is empty array
if not a:
print("List is empty")
Example 3: python array empty
>>> a = []
>>> not a
True