I have to make a program that when I enter a box_size number it show the box. They user should then be able to put in another number and repeat the process. Only when they type 0 should the program stop.
I've tried adding While True, if, and else statements and breaks but none of them stop the program from running.
#Input
box_size=input("box_size:" )
box_size=int(box_size)
for row in range(box_size):
for col in range(box_size*2):
print('*', end='')
print()
print()
#Output
box_size:6
************
************
************
************
************
************