Run
myList = ['pineapple', 'banana', 'watermelon', 'mango'] index = 0 while index < len(myList): element = myList[index] print(len(element)) index += 1
Output