LearnPy Hub
← Introduction & print() problems
Hard

Draw an X

Read an odd number n and print an n × n letter X made of *: row i has stars at columns i and n − 1 − i (from 0). Use spaces elsewhere and no trailing spaces.

Input

One odd integer n ≥ 1.

Output

n lines.

Sample 1

Input
5
Output
*   *
 * *
  *
 * *
*   *

Sample 2

Input
1
Output
*
solution.py
Output appears here
Draw an X · Python practice problem · LearnPy Hub