I am trying to remove elements that have less than 4 characters in each element and it does work
with while-loop but I don't understand properly why it doesn't work with for-loop - please help, thank you
words = ['elephant','cat','dog','bird','lion']
    for i in range(len(words)):
        word = words[i]
        if len(word)<4:
            word.pop(i)
 
     
    