Problem of the Day
Print the following pattern
Write a program to print the following start pattern using the for loop
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
Solution for the same problem :
for i in range(1,6):
for j in range (i):
print("*", end=" ")
print("")
for i in range(4,0,-1):
for j in range(i):
print("*", end=" ")
print("")
Open for any other approach anything better than this
Like, Share, Follow, Comment