

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


One way to achieve this is by list slicing, you can do as follows >>> jit = jit[:2]+jit[8:] >>> jit [11, 32, 75, 33]
Login to add comment