Geometric shapes · 6 / 13 Exercise Medium

Draw a hollow square

Objective

Write a program in Python that asks the user for a symbol and a width. You will use these to draw a hollow square of the given width and height.

Use the provided symbol to draw the hollow square, where the height will be the same as the width.

Input
1
5
Output
11111
1   1
1   1
1   1
11111

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise