Given a number n, write a program to print a diamond shape with 2n rows.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This article is contributed by Rahul Singh(Nit KKR). If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.
- Draw Shape inside Shape in Python Using Turtle
- Program to print hollow pyramid and diamond pattern
- Program to print numbers with diamond pattern
- Program to print Inverse Diamond pattern
- Program to print half diamond Number-Star pattern
- Python Program to print a number diamond of any given size N in Rangoli Style
- Program to print half Diamond star pattern
- Python Program to print hollow half diamond hash pattern
- Programs to print Triangle and Diamond patterns using recursion
- Program for diamond pattern with different layers
- Python Bokeh - Plotting Diamond Dots on a Graph
- Python Bokeh - Plotting Diamond Crosses on a Graph
- bokeh.plotting.figure.diamond() function in Python
- Python | Pandas df.size, df.shape and df.ndim
- Traverse matrix in L shape
- Python | Pandas TimedeltaIndex.shape
- Python | Pandas Series.shape
- Python | Pandas Panel.shape
- Python | Pandas Index.shape
- PyQt5 - Tube shape Radio button