Python Program to Print Full Pyramid



In this program we will print full pyramid using *



  1. #Python program to print Full Pyramid
  2. n=int(input("Enter number of rows: "))
  3. m = (2 * n) - 2
  4. for i in range(0, n):
  5. for j in range(0, m):
  6. print(end=" ")
  7. m = m - 1
  8. for j in range(0, i + 1):
  9. print("* ", end=' ')
  10. print(" ")

Output


Output!