Write a function to receive a cast name as input, search the dataset and return information...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Here is a Python function to receive a cast name as input search the dataset and return information ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
What is the age of the oldest known caldera associated with the Yellowstone hotspot?
-
Explain what a bank needs in order to make a loan. How would you calculate whether the bank has what it needs to make a loan?
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Calculate UTX's market value-added (MVA) for each year 2010-2012.
-
The graph of is given. (a) At what numbers is discontinuous? Why? (b) At what numbers is not differentiable? Why?
-
Model a set of typical family relationshipsspouse, father, and motherin a single 3NF relation. Also include nonkey attributes name and birth date. Assume that each person has only one spouse, one...
-
With reference to Exercise 3.1, suppose that the points \((0,0),(0,1),(0,2),(0,3),(1,0),(1,1),(1,2),(1,3)\), \((2,0),(2,1),(2,2),(2,3),(3,0),(3,1),(3,2)\), and \((3,3)\) have the probabilities...
-
Emerson St. Paul Book Shops accounts at June 30, 2012, included the following unadjusted balances: The physical count of inventory on hand on June 30, 2012, was $5,000. Requirements 1. Journalize the...
-
How can appreciative inquiry methodologies be integrated into change leadership practices to catalyze positive organizational change by leveraging existing strengths and fostering a culture of...
-
Professor Balkaran wants to sell his Bugatti Car and advertises it in the local FIU newspaper at $1,370,000, giving his telephone number, one of his students at FIU sees the advertisement and rings...
-
Enterprise social networking is the application of social network tools to education. True or False
-
List as many brands of cars as you can think of. Group the car brands into target markets. What features of each brand identify its target market?
-
If the newspaper market in Problem 17 were perfectly competitive, what would be the quantity, price, consumer surplus, and producer surplus? Mark each on the graph. The figure illustrates the...
-
Viral marketing can be prevented by using the proper spyware. True or False
-
Which of the following is not an example of a product line length? a. Diet Coke, Cherry Coke, and Classic Coke b. Quaker Instant Oatmeal, Quaker Oatmeal Squares, and Quaker Toasted Oats c. Honda...
-
Maya cycled 9 laps on a bicycle path around the lake. If each lap was 9504 ft long, what was the total distance she cycled? Write your answers in miles. Use the table of conversion facts as...
-
Consider the function f and its graph. a. Estimate the zeros of the area function b. Estimate the points (if any) at which A has a local maximum or minimum. c. Sketch a graph of A, for 0 x 10,...
-
Marty is a sales consultant. Marty incurs the following expenses related to entertainment of his clients in 2012: Dues to a country club......................................................$4,500...
-
Jim (age 50) and Martha (age 49) are married with three dependent children. They file a joint return for 2012. Their income from salaries totals $50,000, and they received $10,000 in taxable...
-
Calculate the amount of the child and dependent care credit allowed for 2012 in each of the following cases, assuming the taxpayers had no income other than the stated amounts. a. William and Carla...
-
Most countries in Europe do not have stringent laws to protect whistleblowers. True/false
-
In view of significant financial losses to investors, corporate fraud does not really affect the U.S. economy and investor confidence. True/false
-
Auditors should not demand full access to the entire general ledger so that they can be more focused on the audit. True/false
Study smarter with the SolutionInn App