checking if a matrix is empty in python code example Example: python array empty >>> a = [] >>> not a True