Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

=+free to pirate employees from competitors?

Answered: 1 week ago