Q:

where to add the line break

make a 0
def number0(width, height, symbol):
    toporbottom  = ("*"*5)
    middle = ("*   *")
    result = toporbottom + "\n" + (middle) * height + "\n" + toporbottom
    return result

result = number0(5, 5, "*")
print (result)

here's what happens when I run the program:
*****
*   **   **   **   **   *
*****

I want to add line break in between middle and height to make it look like a 0 shape with a height of 5.

A:

Try changing middle = ("*   *") to middle = "*   *\n". And don't use the last "\n" in building result. 

