could someone explain...I do not understand this.
At first you have an empty list. The first for loop adds items to your list starting at 1 and going up 11. It also skips every other number. So now your lists is [1,3,5,7,9]. Now you are given a string "cHEcK". The for loop has us loop through the length of this string. Whenever one of indexes in the string is uppercase, the index in the original list is replaced with the index from the string. So for example, c (which is at index value 0), is lowercase so it is skipped. H, at index value 1, is uppercase. So list[1] = string[1], or 3 = H. So the 3 is replaced with an H in the original list. When all is said and done, you are left with the answers above. I'm not sure if I am 100% correct on my terminology, but that's the best I can do to describe what is happening.