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


#1

Where is my fault??

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

Oops, try again. Make sure to use square bracket notation to print out the third element of demo_array.


#2

Is it being printed?
If not, is there an error message? If so, that's information you've got to consider.
You might also compare what you wrote to what's in the instructions. For example, you have an extra space before the opening bracket.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.