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