2/14?


#1

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..."
numbers[1, 3].

i get an error what's wrong???


#2

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..."
numbers[1]
numbers[3]

i did not get an error i took the wrong items but the hint says 1 and 3 ....?


#3

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..." <<<<<< he said adding the numbers in index 1 and index 3, means plus the numbers inside these two indices and print the sum.
print numbers[1] + numbers[3] <<< here your error , you should print 6 + 8 like this way.

Good luck ^^


#4

I tried that approach but got an error message: "It looks like the sum of the second and fourth items was not printed!"


#5

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]