Python Program to Print Full Pyramid
In this program we will print full pyramid using *
- #Python program to print Full Pyramid
-
- n=int(input("Enter number of rows: "))
-
- m = (2 * n) - 2
-
- for i in range(0, n):
- for j in range(0, m):
- print(end=" ")
-
- m = m - 1
- for j in range(0, i + 1):
- print("* ", end=' ')
-
- print(" ")
Output
