Question: in python please provide code that i can edit.and details on how to execute A useful application for a dictionary is to remember, or cache

in python please provide code that i can edit.and details on how to execute

A useful application for a dictionary is to remember, or cache, previously obtained results so that they can be retrieved from the cache when they are new. Modify the program in problem #5 above so that the user can repeatedly enter filenames. If the user enters the same filename more than once, look up the answer from a dictionary instead of counting the words again (print the message filename already entered). For example the two dictionaries would contain, 5 pts

Cache = {filename1:dictionary1, filename2:dictionary2, } Counts = {word1:count1, word2:count2, }

Your code with comments

A screenshot of the execution

A copy of the text file

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!