Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A getData function that gets from the user three lists, one containing the list of artist names, the second containing the list of artwork titles,

A getData function that gets from the user three lists, one containing the list of artist names, the second containing the list of artwork titles, and the third, a price for each artwork. The function should return all three lists.

A searchArt function that takes two input parameters: the list of artwork titles and a specific title to search for. The function should return the index of the artwork in the title list. If the artwork title is not in the list, the function should return -1.

An averagePrice function takes one input parameter: the list of prices. The function computes the average price of all artworks in the gallery and returns that value.

A main function that calls the other functions described above. The main function will also ask the user to enter the name of an artwork to search for before calling the searchArt function. The main function will also print the results of calling the other functions.

Output will look something like this:

image text in transcribed.

Need some help constructing this python code here. Having a hard time understanding where to start.

Thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

assess the infl uence of national culture on the workplace

Answered: 1 week ago