IndexError: list index out of range in for loop while appending to list
I am trying to combine the first and last items in a list. For example, in a 10 item list, it would have items 1 and 10 combined, items 2 and 9 combined, items 3 and 8 combined, etc. (I am aware that in actual python it would be items 0 and 9, items 1 and 8, etc.)