
# #Patterns in python

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

# #Code1
 for i in range(rows):
     for j in range(i+1):
         print("*", end="")
     print("\n")

# #Code2
 for i in range(rows):
     for j in range(i+1):
         print(j+1, end=" ")
     print("\n")

#Result
#	Code1				Code2
#	*				     1
#	* *				   1 2
#	* * *				 1 2 3
#	* * * *			 1 2 3 4
#	* * * * *		 1 2 3 4 5

