List and Functions 1. List Accessing


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/python-beginner-nzzVa/0/1?curriculum_id=4f89dab3d788890003000096#
<In what way does your code behave incorrectly? Include ALL error messages.>

Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: ‘int’ object has no attribute ‘getitem
<What do you expect to happen instead?>
print out the second element in the list

```python

n = [1, 3, 5]

Add your code below

print 1[n]

<do not remove the three backticks above>

#2

Hi if you want to get a second element inisde the array n at index 1 you should do it like that

n[1]

#3

Oh it worked thanks.