• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
July 19, 2022 |1.2K Views

Python Program to Print Stars in Hollow Diamond Shape

  Share  2 Likes
Description
Discussion

In this video, we will learn how to print the hollow diamond shaped star pattern using python. 

Below is the list of approaches that we will cover in this section:
1. What is the concept of printing the diamond shape.
2. How to print hollow diamond shapes in Python.

Here we will try to understand the concept related to printing the hollow diamond shape in Python. 

The concept is divided into 2 parts. In the first part, we will understand how to draw the upper part of the triangle and then code in Python, and then we will move to the next part to the lower half of the diamond.

In both the section we will use 3 for loops, where we will handle the row section and j handles the columns section.

Python program to print hollow pyramid diamond pattern
https://www.geeksforgeeks.org/program-print-hollow-pyramid-diamond-pattern/