num=int(input("Enter no of rows: "))#num=3for 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