Patterns in Python

 



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

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

        print() #for moving to next line

        print("*"*(num-i)+" "*(2*i)+"*"*(num-i),end="")





Comments

Popular Posts