Instagram
youtube
Facebook
Twitter

Python Program to Print Solid Rectangle

A Python Program to Print Solid Rectangle?

Code Explanation:

● Loop runs 3 times to print 3 rows.

● Each row prints 4 stars using "****".

● All rows are identical.

● There is no indentation or alignment logic.

● Output is a 3-row, 4-column solid rectangle.

 

Program:

for i in range(3):

    print("****")