1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    Smile Need help with a python functuon

    (list of str, dict of {str: list of str}) -> list of str

    The first parameter is a list of movies that are currently in stock at a movie store. The second parameter is a dictionary where each key is the name of a customer and each value is a list of that customer's favourite movies ordered from most to least favourite. It is possible for a customer to have a favourite movie that is not in stock at the store. Return a list of all in-stock movies that are the first- or second-favourite movie of at least one customer. The movies in the returned list must be in the same order as in the first parameter and the returned list must not contain duplicates. The parameters are not changed by the function.
  2. #2
  3. Contributing User

    Join Date
    Aug 2011
    Rep Power
    The answer appears click here, read this thread.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo