An upside-down triangle

Write code · Medium · §7.6 Nested loops and the first math helper

Print n stars on the first line, then one fewer star on each line below, ending with 1 star on the last line.

Starter code

n = 5

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.