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