python remove row with specified index from 2d list
Python[Edit]
+
0
-
0
python remove row with specified index from 2D list
1 2 3 4 5 6 7 8 9 10 11my_list = [ [11, 12, 13], [21, 22, 23], [31, 32, 33] ] row_index = 1 my_list.pop(row_index) # remove row with specified index print(my_list) # [[11, 12, 13], [31, 32, 33]]
[Edit]
+
0
-
0
python remove row with specified index from 2D list
1 2 3 4 5 6 7 8 9 10 11my_list = [ [11, 12, 13], [21, 22, 23], [31, 32, 33] ] row_index = 1 del my_list[row_index] # remove row with specified index print(my_list) # [[11, 12, 13], [31, 32, 33]]