I have a list:
list1=[[2,3],[4,5],[6,7]]
I want to add a single value "one" to all sublist in the list at index 2
final output should be:
list2=[[2,3,"one"],[4,5,"one"],[6,7,"one"]]
tried with:
for list2 in list1:
print list2.insert(2,"one")
But its showing error as None
.