Question: Please help me write the code to produce the outcomes of the two scenarios. Thank you! 1. Define a function multiply_negative_numbers that consumes a list

Please help me write the code to produce the outcomes of the two scenarios. Thank you!

1. Define a function multiply_negative_numbers that consumes a list of integers and produces the product of all the numbers multiplied by each other. However, you should ignore positive numbers. So the list [-5, 4, -3] would produce 15.

You are not required to document of unit test the function.

2.

A Costume is a dictionary with 3 keys:

'label': A string representing the name of the costume.

'price': An integer representing the cost of the costume in dollars.

'sizes': A list of strings representing the available sizes ('S', 'M', 'L').

Define a function find_first_small that consumes a list of costumes and produces the label of the first costume that is available in a small. If no small costumes are found, produce the special value None.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!