Question: Exercise 4 PYTHON (Not SQL, Please answer in PYTHON ) Please follow ALL requirements Write a function to receive a cast name as input, search

Exercise 4 PYTHON (Not SQL, Please answer in PYTHON) Please follow ALL requirements

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 Christina Aguilera, the function should return: No movie found for the artist: Christina Aguilera (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.

dataset = data.csv. There are 4 exercises that I will post separately. this is 4/4

BELOW IS A PREVIEW OF THE DATASET (preview is incomplete!!!) Please answer with Python code

Exercise 4 PYTHON (Not SQL, Please answer in PYTHON) Please follow ALL

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!