Define the main function then call it. It should perform the…

Questions

Define the mаin functiоn then cаll it. It shоuld perfоrm the following: Ask the user for а database filename, let's call it myfile. Pass the filename to the function of question 1. The resulting dictionary should be saved in a variable, let's call it DBdict. Pass DBdict to the list processing function. The returned dictionary should be saved in DBdict2. Extract the keys and values of DBdict2 into two lists of DBstr and DBint. Pass myfile, DBstr and DBint to the function of question 3. If the returned result is True proceed to the next step, else display an error message.  Pass the two lists DBstr and DBint to the plotting function you defined above. In the above step, you got a plot object. Display it then ask the user if they want to save, and save it as requested, or skip.