Adding to one element in a list : If I have     a=[1,2,3] and I want to add 1 to element     [2] to get the output     [1,2,4], how would I do that?

I assume I would use a for loop but not sure exactly how.