Your question is Print Rectangle. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Circle's internal status tools use fixed-size text blocks for compact terminal output. Given a rectangle's width and height, return a hollow ASCII rectangle made of * characters, with spaces inside and no trailing newline.
Implement render_rectangle(width, height). The inputs are positive integers. Return a single string containing exactly height rows, each containing exactly width characters, with rows separated by .
A cell contains * when it lies on the top, bottom, left, or right border. Every other cell contains a space. If either dimension is 1, every position is part of the border.
def render_rectangle(width, height):