#!/usr/bin/python3
def print_square(size):
    if not isinstance(size, int):
        raise TypeError('size must be an integer')
    if size < 0:
        raise ValueError('size must be >= 0')
    for elem in range(size):
        print('{}'.format('#' * size))

#!/usr/bin/python3
def print_square(size):
    if not isinstance(size, int):
        raise TypeError('size must be an integer')
    if size < 0:
        raise ValueError('size must be >= 0')
    for elem in range(size):
        print('{}'.format('#' * size))

#!/usr/bin/python3