0

matrix=[[1,2,3],[2,3,4], [4,5,6]] for row in matrix: for item in row:print(item)

what's wrong with this

2nd Feb 2020, 6:30 PM
Sanket Teli
Sanket Teli - avatar
4 Respostas
+ 5
Indentation is totally missing. In this case easy to get it running - just move the lowest line at least one space to the right. Anyway, to understand this important topic, read (not run) this: https://code.sololearn.com/cT5BRIbkia21/?ref=app
2nd Feb 2020, 6:31 PM
HonFu
HonFu - avatar
+ 3
that worked
2nd Feb 2020, 6:36 PM
Sanket Teli
Sanket Teli - avatar
+ 3
Happy to hear it! :)
2nd Feb 2020, 6:40 PM
HonFu
HonFu - avatar
+ 1
thank you
2nd Feb 2020, 6:41 PM
Sanket Teli
Sanket Teli - avatar