Create Pyramid Patterns with Python| {101 Days of Python} [A to Z Python Program]

rows = int(input("Enter number of rows: "))

for i in range(rows):
    for j in range(i+1):
        print("* ", end="")
    print("\n")

Spread the love

Leave a Comment

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