+ 1
for i in range (0,5): for j in range (0,i+1): print ("* ",end="") print()
Why is the program listed above not running? Please help me understand.
3 Answers
+ 8
You should indent after the loops lines.
for i in range (0,5):
for i in range (0, i + 1):
print ("*", end="")
print ()
+ 3
Thanks
+ 3
Ur welcome