Blue Week Special Offer | Brighten your week!
days
hours
minutes
seconds

Genre' Food & Drink'

Screen Link:

I get the code right, I just don´t understand when I check the variables, the variable "genre" appears as 'Food and Drinks'. I thought I was working with 2Games" genre. In fact, is what is explained on the exercise. 
Thank you

Hello @javiermarzalb, We are iterating the apps_data[1:] rows, we assign the item at index 11 to genres in every iteration. That means in every iteration the genres will be updated with the item of the 11th index of that row. The last row has the following items

['977965019',
 'みんなのお弁当 by クックパッド ~お弁当をレシピ付きで記録・共有~',
 '51174400',
 'USD',
 '0.0',
 '0',
 '0',
 '0.0',
 '0.0',
 '1.4.0',
 '4+',
 'Food & Drink',
 '37',
 '0',
 '1',
 '1']

and that’s why you see the genre has Food & Drink.

Remember we also have a conditional statement that checks if the genre has "Games", so the last iteration it’ll be False since genre doesn’t is not equal to "Games"

1 Like