length, breadth = x, y matrix = [[-1 for j in range(breadth)] for i in range(length)] # every element is -1