← Back to Exercises
🛑

Break, Continue & Nested Loops • Exercise 58 of 112

Star Triangle

Medium⭐ 30 XP🏆 Your XP: 0

🎯 Your Mission

Use nested loops to print a triangle of stars with 5 rows. The first row has 1 star and the last row has 5 stars.

🐍 main.pyTab = 4 spaces • Ctrl+Enter = Run
▶ Output
Press ▶ Run to see what your code does!