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
2 Answers
+ 2
what code?
- 1
for i in range(4):
print('*' * (i+1))