New course! Every coder should learn Generative AI!
Try a free lesson+ 2
You are overwriting i in the inner loop. It starts over from 0 with that range call. Maybe that the problem?
+ 1
for i in range(i+3):
print("*",end="")
print()
because u start from 2