This code tries to make a triangle out of stars. But oh no! There’s an error in there somewhere - it outputs all the stars on on | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 4

This code tries to make a triangle out of stars. But oh no! There’s an error in there somewhere - it outputs all the stars on on

How to solve

7th Dec 2021, 3:26 PM
Satyam Dixit
2 Antworten
+ 2
what code?
7th Dec 2021, 3:27 PM
Slick
Slick - avatar
- 1
for i in range(4): print('*' * (i+1))
7th Dec 2021, 3:36 PM
Slick
Slick - avatar