Access by Index


#1

Stuck on this topic:

demo_array = [100, 200, 300, 400, 500]
demo_array [2]

This is what I have so far..looks correct to me,but being a newbie I could be wrong

Instructions:
Use square bracket notation to print the third value of demo_array to the console.

Remember that the third value is at index two, not at index three. We start counting indices from zero.


#2

Got it!! Just had to add print next to demo_array[2]

print demo_array[2]