LearnPy Hub
← Loops problems
Hard

Diamond

Read n and print a diamond of stars with 2n − 1 rows, widest in the middle (2n − 1 stars).

Input

One integer n ≥ 1.

Output

2n − 1 lines.

Sample 1

Input
3
Output
  *
 ***
*****
 ***
  *

Sample 2

Input
1
Output
*
solution.py
Output appears here
Diamond · Python practice problem · LearnPy Hub