Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Operations on Arrays

Note: If an explanation is not provided below in the language you are looking for, send an email to <content+cs@teamtreehouse.com>

Python

Accessing Elements

Use the index operator on a list to access values using an index. Note that index values start at 0.

&gt;&gt;&gt; numbers = [1, 2, 3, 4, 5, 6]
&gt;&gt;&gt; numbers[2]
3

Using an index that is out of bounds of the cur...