Star Pattern 2

Description:

Write a program to print the star pattern Input:Number of rows Output:Star pattern Refer sample input and output for formatting specification. Test Case 1 Input (stdin) 6 Expected Output * ** *** **** ***** ****** Test Case 2 Input (stdin) 4 Expected Output * ** ***

Program :

def pypart(n):

    for i in range(0, n):

        for j in range(0, i+1):

            print("*",end="")

        print("\n")

n =int(input())

pypart(n)