Write a programExercise 2/4Basic10 XP
An upside-down pyramid
Task
The program reads a positive whole number n and prints an upside-down pyramid of stars with n rows: n stars in the first row, one fewer in each next row.
For n = 4:
****
***
**
*
Examples
Input
4
Expected output
**** *** ** *
After you submit, 3 hidden tests will also check your solution: one row, two rows, six rows.
You need to know
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.