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!
Please click on the like button if it worked

Solution not working or have any suggestions? Please send an email to [email protected]


Join Our Facebook Group


Share this example


Download Android App





codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube