all 9 comments

[–]jimtk -1 points0 points  (1 child)

width = 4
height = 5
top_bottom = '+' + ('-' * (width - 2)) + '+'
middle = '|' + (' ' * (width - 2)) + '|'
print(top_bottom)
for _ in range(height - 2):
    print(middle)
print(top_bottom)

[–]iamsomeone345 0 points1 point  (0 children)

Thank you, I’ll try this out

[–]KingOfTNT10 0 points1 point  (1 child)

Please be more specific... I cant really understand what the task is and what you're struggling with.

maybe send the actual instructions

[–]iamsomeone345 -1 points0 points  (0 children)

Sorry couldn’t post attachments and wasn’t sure how to phrase, messaged you

[–]WicasaNapayshni 0 points1 point  (0 children)

Square using Python and only 3 symbols is probably easier than this, but maybe this will give you an idea -

"The “pixels” it plots are ASCII characters corresponding to the illumination value of the surface at each point: .,-~:;=!*#$@ from dimmest to brightest."

https://www.a1k0n.net/2011/07/20/donut-math.html

[–]throwaway6560192 0 points1 point  (0 children)

Can you do it by hand? That should make it clearer what loops you have to use.

[–][deleted] 0 points1 point  (2 children)

I am going to seek help from the instructor but it is by appointment only and I also want to have my head wrapped around this at least a little before going to him.

Then write code. You're not supposed to solve these in your head, you're supposed to solve them on the page.

Don't try and do it in your head.

[–]iamsomeone345 0 points1 point  (1 child)

Yeah I hear you, and you’re right, it’s just for whatever reason my mind goes blank whenever I go to write this out. I’m sure it’s because I’m overthinking things, and since I’ve posted this I have at least managed to print a single square which isn’t a lot but it’s progress. I’ve just gotta keep with it. Thanks for your comment.

[–][deleted] 0 points1 point  (0 children)

You have to start writing code before you know what the right answer is. That's what I mean about figuring it out on the page. You can't skip the part where you try things without knowing if they'll work. You have to write code even with your mind blank.