Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Here is a Python function to receive a cast name as input search the dataset and return information ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started