how to check if array is deleted in python code example
Example 1: check if list is empty python
if len(li) == 0:
print('the list is empty')
Example 2: python remove one element from array
array = ["red", "green", "blue"]
del array[0] # this deletes the first element, red, in the array