human
Give me a Python code to check all are none or none are none.
assistant
Here is a Python code to check all are none or none are none

import math

def check_all_none_or_none_are_none():
        """
        Checks all are none or none are none.
        """
        if all([x is None for x in [1, 2, 3]]):
            return True
        else:
            return False

# Enter the table
table1 = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

# Calling the function
print((check_all_none_or_none_are_none()))

#Example Output

# False

#Remember to inspect code for bugs.