
Implement paint_rectangles, which paints rectangles of characters onto a blank canvas and returns the canvas as rows of text.
paint_rectangles(5, 3, [(1, 0, 3, 2, "#"), (2, 1, 3, 2, "o")])['.###.', '.#ooo', '..ooo']paint_rectangles(3, 2, [(2, 1, 4, 4, "*")])['...', '..*']paint_rectangles(0, 2, [(0, 0, 1, 1, "z")])['', '']paint_rectangles.py
Run the tests to grade your code
Implement paint_rectangles, which paints rectangles of characters onto a blank canvas and returns the canvas as rows of text.
paint_rectangles(5, 3, [(1, 0, 3, 2, "#"), (2, 1, 3, 2, "o")])['.###.', '.#ooo', '..ooo']paint_rectangles(3, 2, [(2, 1, 4, 4, "*")])['...', '..*']paint_rectangles(0, 2, [(0, 0, 1, 1, "z")])['', '']paint_rectangles.py
Run the tests to grade your code
Variables will appear here