Not Sure Where I

Screen Link: https://app.dataquest.io/m/312/lists-and-for-loops/4/retrieving-multiple-list-elements

My Code:
row_1 = [‘Facebook’, 0.0, ‘USD’, 2974676, 3.5]
row_2 = [‘Instagram’, 0.0, ‘USD’, 2161558, 4.5]
row_3 = [‘Clash of Clans’, 0.0, ‘USD’, 2130805, 4.5]
row_4 = [‘Temple Run’, 0.0, ‘USD’, 1724546, 4.5]
row_5 = [‘Pandora - Music & Radio’, 0.0, ‘USD’, 1126879, 4.0]

app_data_set = [row_1, row_2, row_3, row_4, row_5]
avg_rating = (app_data_set[0][-1] + app_data_set[1][-1] + app_data_set[2][-1] + app_data_set[3][-1] + app_data_set[4][-1])/5

What I expected to happen:
I expected the answer to be 4.2 (which when I compute it manually it is the right answer)

What actually happened:

It says that everything is undefined. I am pretty sure my code is right. Where did I go wrong?

hey @alexmorseking1995

you have used your own way to solve the task, which is great.

however, it is looking for the other 3 variables, you need to assign them as well:

fb_rating_data
insta_rating_data
pandora_rating_data

and the avg_rating is not for all the 5 rows. please go through the task again and modify your code accordingly.

Hi Rucha,

I sent the wrong link:

Here is the correct one

https://app.dataquest.io/m/312/lists-and-for-loops/6/list-of-lists

hey @alexmorseking1995

I tried your code. It works fine and is accepted on my console.

perhaps a glitch in the matrix at the exact moment you were in the building!

try doing a hard refresh on your browser and try it once again. Let’s see if it still doesn’t work.

just to clarify, what does manually implies here?