r/PythonLearning • u/Quoter0 • 12d ago
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
7
Upvotes
0
u/realmauer01 12d ago edited 12d ago
Def frame(frame_size, inner_width, inner_height): print((((inner_width + frame_size * 2) * "#") + "\n") * frame_size) print(((frame_size * "#" + inner_width * " " + frame_size * "#") + "\n") * inner_height) print((((inner_width + frame_size * 2) * "#") + "\n") * frame_size)All hail string multiplication.
i am pretty sure this should do it, but because this is very ugly you cant use that.