Sololearn: Learn to Code
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?
1st Nov 2019, 8:00 AM
HonFu
HonFu - avatar
+ 1
for i in range(i+3): print("*",end="") print() because u start from 2
31st Oct 2019, 6:39 PM
T1mun
T1mun - avatar