suppose in a python list:
l1 = [2,5,21,6,8,5,9,8,12]
here I want the sum of list excluding the value from 6 to 9 i.e. 2+5+21+8+12, I want the value from 6 to 9 i.e. 6,8,5,9 to get omitted.
here in the list the number 6 is at index 3 and number 9 is at index 6, so i want those values to be exclude