Instagram
youtube
Facebook
Twitter

Python Program to Print Solid Rhombus (Left Inclined)

A Python Program to Print Solid Rhombus (Left Inclined)?

Code Explanation:

● Loop runs from 0 to 4 for 5 rows.

" " * (4 - i) adds decreasing spaces at the start of each row.

"*" * 5 prints 5 stars in each row.

● Together they form a left-inclined solid rhombus.

● Output is a right-shifted solid block.

Program:

for i in range(5):

    print(" " * (4 - i) + "*" * 5)