Question
How do I access the 2nd item in a list?
Answer
Recall that lists start counting from 0, not 1! So if we want to access an item, we start as 0 for the index of the first item, and count our way up to the item we want.
In this case, we’re given a list n = [1, 3, 5]
, so the second element is 3
, and has an index of 1
.