how to check if an array is empty in python code example Example: check if array is empty python a = [] if not a: print("List is empty")