subject

Please fill in the blank so that the following code successfully iterates through the data stored in "makeup_products" and extracts the total number of shades for items that are meant just for "Lips", storing the total in a variable called "total_count_lip_shades".I tried if(item[product]["Location"] == "Lip"): itdidn't work, please help!makeup_products = {"Products": [{"Primer": {"Shades": 15,"Styles": 5,"Location": "Face"}},{"Lipstick": {"Shades": 48,"Styles": 3,"Location": "Lips"}},{"Lip liner": {"Shades": 32,"Styles": 4,"Location": "Lips"}},{"Blush": {"Shades": 13,"Styles": 2,"Location": "Face"}},{"Eye Liner": {"Shades": 14,"Styles": 7,"Location": "Eye"}},{"Travel Makeup Kit": {"Shades": "N/A","Styles": 3,"Location": "Face, Lips, Eye"}}] }total_count_lip_shades = 0for item in makeup_products["Products"]:for product in item:# your line hereshade_count = item[product]["Shades"]total_count_ lip_shades += shade_count

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
You know the right answer?
Please fill in the blank so that the following code successfully iterates through the data stored in...
Questions
question
Mathematics, 26.02.2021 23:50
question
Social Studies, 26.02.2021 23:50
question
Mathematics, 26.02.2021 23:50
question
History, 26.02.2021 23:50
Questions on the website: 13722367