List and Functions 1. List Accessing


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]


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



Oh it worked thanks.