I want to reverse every other words in a list. The list that I have is -
['Bananas', 'Apples', 'Fruits', 'Chocolate', 'Watermelon', 'Kiwi', 'Avacado', 'Lemon', 'Lime', 'Money']
How do I reverse every other word so the output should be.
['Bananas', 'selppA', 'Fruits', 'etalocohC', 'Watermelon', 'iwiK', 'Avacado', 'nomeL', 'Lime', 'yenoM']
The first letters don't have to be big I just had it like that. Much appreciated
[::-1]to reverse an individual string and 2) userange(start, stop, step)to loop over specific indicies.