PRACTICE CODE SNIPPETS

PRACTICE CODE SNIPPETS

Search This Blog

Tuesday, August 9, 2022

pattern python




 num=int(input("Enter no of rows: "))#num=3

for i in range(1,num+1):#1,2,3
    for j in range(1,i+1):#1,2,3
        print("*",end=" ")#1 star
    print()
Enter no of rows: 5 * * * * * * * * * * * * * * *

No comments:

Post a Comment

Practice and let me know for nw code snippets