how to create empty array in python code example
Example 1: python is empty array
if not a:
print("List is empty")
Example 2: python initialize array
array1 = [] #an empty array
array2 = list() #another empty arrat
array3 = ["1", "2", "3"] #array initialization with value
arrat4 = [x for x in range(1,11) #list comprehension
Example 3: python array empty
>>> a = []
>>> not a
True