2/14 Access by index


#1

Hi there!
I can't found out what is wrong?


#2

The numbers in numbers[ ] are wrong !
remember that the first item is stored in zero


#3

1) Task: Write a statement that prints the result of adding the second and fourth items of the list. Make sure to access the list by index!

2) There are: numbers = ["5", "6", "7", "8"];

3) "5"- index 0 (1st item)
"6" - index 1 (2nd item)
"7" - index 2 (3rd item)
"8" - index 3 (4th item)

I feel like a foolish, where is mistake?


#4

why did you add quotes( " " ) in paretheses in line 2)? Just leave it without them and you ┬┤ll be fine
also, delete colon at the end of the line 2)


#5

It's worked! Thanks a lot!