I have a list like:
mylist = ["1", "2", "3", "4", "5"]
I want to add some text to every other item so it looks like this:
mylist = ["1a", "2", "3a", "4", "5a"]
I wrote this, which works fine for every item. How do I make it apply only to every other item?
mylist2 = ["a" + item for item in mylist]