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!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 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 Respuestas
+ 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