Question: 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:

A getData function that gets from the user three lists, one containing.

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

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!