human
Write me a Python code to square matrix with a checkerboard pattern of 0's and 1's of any given size.
assistant
Here is a Python code to square matrix with a checkerboard pattern of 0's and 1's of any given size

import numpy as np

def get_checkerboard_matrix(size):
    """
    Returns a square matrix with a checkerboard pattern of 0's and 1's of any given size.
    """
    matrix = []
    for i in range(size):
        matrix.append([0] * size)
        matrix.append([1] * size)
    return matrix

# Enter the size
size = 3

# Calling the function
matrix = get_checkerboard_matrix(size)

# Printing the matrix
print(matrix)

#Example Output

# [[0, 0, 0], [1, 1, 1], [0, 0, 0], [1, 1, 1], [0, 0, 0], [1, 1, 1]]

#Remember to inspect code for bugs.