python empty list append code example
Example 1: empty list check in python
if not a:
print("List is empty")
Example 2: empty list python and fill it at specific position
l = [None for _ in range(200)]
l[2] = 2
l[177] = 177
Example 3: python array empty
>>> a = []
>>> not a
True