Practical program
Heading : Pattern printing
Aim: Write a program to print the following pattern
*
* *
* * *
* * * *
Answers
Answered by
4
def pyramid_create(n):
for i in range(0, n):
for j in range(0, i + 1):
print("* ", end = "")
print("\r")
pyramid_create(4)
Similar questions