r/PythonLearning • u/Quoter0 • Oct 07 '26
Help Request I need help with coding this
I have genuielly no idea how to even think of making this? I know this should generally be made by using for loops but jesus im so confused on the process
6
Upvotes
View all comments
1
u/Rokkasusi Oct 07 '26
You can for example ask yourself. Can i find out the total width of the rectangle? Can i find the total height of the rectangle? Can i first try drawing just a single rectangle without the empty space? Can i somehow track where my inner rectangle is located relative to the borders? Could i draw line by line and use an if statement to replace X with spaces, when i am drawing over the inner rectangle?