7.2 somenthing not working


#1

Very easy question but still doesnt work.
Is there a probleme in the system?

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

print demo_array [ 2 ]


#2

is it a problem in the tutorial?
I realy dont get why it is not working???


#3

Hi @romaintoulemonde ,

Your solution is correct, but Codecademy seems to not like the format. To pass, remove the space that comes before the square bracket in this line ...

print demo_array [ 2 ]

#4

I'd suggest you use no spaces between the variable name and between the brackets and value:

demo_array[2]