List and Functions 1. List Accessing


#1



https://www.codecademy.com/courses/python-beginner-nzzVa/0/1?curriculum_id=4f89dab3d788890003000096#

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'

print out the second element in the list


n = [1, 3, 5]

# Add your code below
print 1[n]


#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.