Instagram
youtube
Facebook
Twitter

Python Program to Print Half Pyramid Pattern Using Asterisk

    A Python Program to Print Half Pyramid Pattern Using Asterisk
   
 
    Short Description:
    This program prints a half pyramid pattern using asterisk (*) symbols.
    It uses a for loop to print i stars in each row, increasing from 1 up to the number of num entered by the user.

Program:

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

for i in range(1,num+1):

    print("* "*i)