Question: Do in python 6- Create an empty dictionary, then add 4 entries (the key is a word, the value is word's frequency in a book).
Do in python

6- Create an empty dictionary, then add 4 entries (the key is a word, the value is word's frequency in a book). [example: { 'street': 23\}]. your code goes here: 7- Create a for loop to access the entries from Q.6 and print the keys and values. your code goes here: 8- Copy the code from Q.7 and search for a specific key in the dictionary and prints its value. The program prints a message " the { key } is not found", if the key does not exist. your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
