Back to Freecodecamp

Accessing a Value in an Array

curriculum/challenges/english/blocks/introduction-to-arrays/accessing-a-value-in-an-array-video.md

latest457 B
Original Source

--description--

In this video, you will learn how to access elements from an array.

--questions--

--text--

Which of the following is the correct way to access the first element from a Python list?

--answers--

python
new_list = [9, 6, 3]
new_list[0]

python
new_list = [9, 6, 3]
new_list[1]

python
new_list = [9, 6, 3]
new_list[-1]

python
new_list = [9, 6, 3]
new_list[2]

--video-solution--

1