Question: The first problem on the take - home coding challenge is to write a function called portfolio _ intersection ( ) that takes two lists

The first problem on the take-home coding challenge is to write a function called portfolio_intersection() that takes two lists of stock symbols as parameters, representing the portfolios of two clients. The function should return a list containing the stock symbols that are common to both portfolios. If there are no common stocks or if either list is empty, return an empty list.

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!