Dec-17-2025, 04:17 PM
I am following Loop tutorials and in the exercises to try. Question 11 is to create a box of stars asking the user how high and wide they want the box.
My code creates:
******
*
*
*******
How do I create blank spaces before printing the last star to make the box complete?
I've input numbers for user to save typing each time I run the code.
My code creates:
******
*
*
*******
How do I create blank spaces before printing the last star to make the box complete?
I've input numbers for user to save typing each time I run the code.
print('*'*6, end = '\n')
for i in range (2):
print ('*', end = '\n')
print('*'*6)Thanks for looking.
