0

Please tell me step by step mistake in my coding (please ignore indentation errors).

4321 432 43 4 Correct coding row = 1 while (row<=4): col=4 while (col>=5- row): print (col, end=" ") col = col-1 row=row+1 print () My coding row = 4 while (row>=1): col=4 while (col>= 1): print (col, end=" ") col = col-1 row=row-1 print () please tell me step by step mistake starting from row=4 ( please ignoring indentation errors)(It's a rough coding).

4th Sep 2019, 2:21 PM
Yash Garg
Yash Garg - avatar
1 ответ
+ 4
You can't just ignore indentation, especially with Python. Change "while col>=row:" to "while col>=5-row:".
4th Sep 2019, 3:18 PM
Diego
Diego - avatar