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).
1 Answer
+ 4
You can't just ignore indentation, especially with Python.
Change "while col>=row:" to "while col>=5-row:".