+ 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.

28th Aug 2019, 8:17 PM
Md Waliullah Shah
Md Waliullah Shah - avatar
3 ответов
+ 8
You should indent after the loops lines. for i in range (0,5): for i in range (0, i + 1): print ("*", end="") print ()
28th Aug 2019, 8:24 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
+ 3
Thanks
28th Aug 2019, 8:25 PM
Md Waliullah Shah
Md Waliullah Shah - avatar
+ 3
Ur welcome
28th Aug 2019, 8:26 PM
Eliya Ben Baruch
Eliya Ben Baruch - avatar