Question: Now, the program will ask the user to input a size of their matrix. So , the matrix could be as large or as small

Now, the program will ask the user to input a size of their matrix. So, the matrix could be as large or as small as the user wants! Let it always have the same number of rows as columns. We will have to use loops to create art from henceforth.
Create "level2.py" that draws square. Notice that the borders (top, left, bottom, and right) have a width of 2 regardless of the size of the matrix. The remaining is filled with the tilde (~) character.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!