Solution:
Hello Gavin,
I come to know that you are an entry-level programming student, and you want to write a program that prints a rectangle with three columns and two rows. Yes, this is pretty basics of nested loop problems.
Let me walk you through my code below:
rows = 2
cols = 3
for m in range(rows):
print('*', end=' ')
for n in range(cols-1):
m*=n
print('*', end=' ')
print('')
Look into my codes very carefully, please. This nested loop will print a rectangle of two rows and three columns, as you are looking for.
First, for-loop will produce the rows and the second one will the columns.
I hope you get me. Thanks.