I have a list like this lst = [1,3,5]
and a major list like lost =['the' , 'cat' , 'thinks' , 'you' , 'are' , 'crazy' ]
I want to delete elements in second list based on indexes in the first one . It means i have to remove 'cat' , 'you' and 'crazy' .
The problem is if i use :
lost.remove(lost[1])
lost.remove(lost[3])
lost.remove(lost[5])
First problem is its not gonna work out! Because as we remove the first element the length of the list(named lost) decreases and in that way we will remove wrong elements.
Second problem is the list named(lst) will not always be [1,3,5] . Its gonna change in length and in elements .
How can i fix the problem?