Question: Write a function to receive a cast name as input, search the dataset and return information about that actor from the database. Your function

Write a function to receive a cast name as input, search the dataset and return information about that actor

Write a function to receive a cast name as input, search the dataset and return information about that actor from the database. Your function should meet the following requirements: Your function should receive an actor name as an input string and return (1) their average movie duration rounded up to a whole number, and (2) a list of their movies from the list. . If the actor name supplied is not found in the database, return the message: No movie found for the artist: [supplied actor name]. E.g, If I search for an artist named Jennifer Lopez, the function should return: No movie found for the artist: Jennifer Lopez (this is an example!!). Remember to deal with whatever letter case you are supplied i.e. all caps or all lowercase, etc. Remember to consider the file type of EVERY row of information when writing out your function.

Step by Step Solution

3.53 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python function to receive a cast name as input search the dataset and return information ... View full answer

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 Programming Questions!