Right-Angle Triangle of Stars in Python

SOLUTION....

n = 5
for i in range(1, n + 1):
    print("*" * i)

OUTPUT

Leave a Reply

Your email address will not be published. Required fields are marked *