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