0
i have a list assume 10 data in the list. If i want to remove number 3 to 8 data then who to i will remove ?

jit=[11,32,43,56,25,83,85,24,75,33]
above given list is my list.


Python 16-03-18, 3:21 p.m. jitendra
0
One way to achieve this is by list slicing, you can do as follows >>> jit = jit[:2]+jit[8:] >>> jit [11, 32, 75, 33]
24-03-18, 7:35 p.m. arunkp1986


Log-in to answer to this question.