*I am in the following section: *
Lists and For Loops
4. Retrieving Multiple List Elements
This is 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]
fb_rating_data = [row_1[0], row_1[3], row_1[4]]
insta_rating_data = [row_2(0), row_2(3), row_2(4)]
pandora_rating_data = [row_5(0), row_5(3), row_5(4)]
total = [fb_rating_data(2) + insta_rating_data(2) + pandora_rating_data(2)]
avg_rating = total/3
After running this code i get the following error.
TypeErrorTraceback (most recent call last)
<ipython-input-1-dc48ef9bea5f> in <module>()
6
7 fb_rating_data = [row_1[0], row_1[3], row_1[4]]
----> 8 insta_rating_data = [row_2(0), row_2(3), row_2(4)]
9 pandora_rating_data = [row_5(0), row_5(3), row_5(4)]
10 total = [fb_rating_data(2) + insta_rating_data(2) + pandora_rating_data(2)]
TypeError: 'list' object is not callable
Could you please explain this error