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 13:30
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
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, 30.04.2021 20:40
question
English, 30.04.2021 20:40
question
Chemistry, 30.04.2021 20:40
question
Arts, 30.04.2021 20:40
question
Mathematics, 30.04.2021 20:40
Questions on the website: 13722359