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!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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 Answers
+ 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