Whats going on? 2/3


#1

Whats going on?

For some odd reason, I keep getting the same error, over, and over, and over again.
Code:

numbers = [5, 6, 7, 8]

print "Adding the numbers at indices 0 and 2..."
print numbers[0] + numbers[2]
print "Adding the numbers at indices 1 and 3..."
print numbers[3]

And then it changes:

numbers = [5, 6, 7, 8]

print "Adding the numbers at indices 0 and 2..."
print numbers[0] + numbers[2]
print "Adding the numbers at indices 1 and 3..."
print numbers[2]

But I get the same error. Which is:
Oops, try again. Remember: the second item will have an index of 1. Make sure to access the second item by its index!

Or other codes:

  • numbers = [5, 6. 7, 8]

    print "Adding the numbers at indices 0 and 2..."
    print numbers[0] + numbers[2]
    print "Adding the numbers at indices 1 and 3..."
    print numbers[1]



Thanks.


#2

Look at your last line.

numbers = [5, 6, 7, 8]

print "Adding the numbers at indices 0 and 2..."
print numbers[0] + numbers[2]
print "Adding the numbers at indices 1 and 3..."
print numbers[1] + numbers[3]