Question: Dictionary Given that you are given the lines - Would you tell me , please, which way l ought to go from here? That depends

Dictionary
Given that you are given the lines -
"Would you tell me, please, which way l ought to go from here?"
"That depends a good deal on where you want to get to."
"I don't much care where -"
"Then it doesn't matter which way you go."
If you construct a dictionary (using a hashmap) from this sentence, what would be the value corresponding to the word "you" in the dictionary?
Hint: The value corresponding to each word gives the no. of times a word exists in the text.
Dictionary Given that you are given the lines -

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 Programming Questions!