Quote:
I'm not sure how to approach this, I have learned how to do a hollow square and a filled square, but I'm not sure how to combine them into what this is supposed to be.
The job you are learning is about creating algorithms, if we just give you a full solution, you will learn nothing and it will defeat the purpose of homework.
Learning to create algorithms is done with experience and experimenting, you learn by seeing what is working and what is not. This is a first hand process, nobody can do it for you.
Advice: do a set of related exercises more and more complicated.
- print a playfield of 20x30 filed with '.', make it so tiy can change playfield size
- add feature to print a star '*' at given position
- change code for more stars
- add feature to print a square '#' at given position
- change code for more squares
- add feature to print a rectangle '#' at given position
- change code for more rectangles
- add feature to print squares centered on playdield
In order to help you understand why something don't work, learn debugger, it is an incredible learning tool.
Debugger - Wikipedia, the free encyclopedia[
^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
Basic Debugging with Visual Studio 2010 - YouTube[
^]
27.3. pdb — The Python Debugger — Python 3.6.1 documentation[
^]
Debugging in Python | Python Conquers The Universe[
^]
pdb – Interactive Debugger - Python Module of the Week[
^]
The debugger is here to only show you what your code is doing and your task is to compare with what it should do.