Question: Assignment 6-4: Glossary 2 : Now that you know how to loop through a dictionary, clean up the code from Exercise 6-3 by replacing your
Assignment 6-4:
Glossary 2: Now that you know how to loop through a dictionary, clean up the code from Exercise 6-3 by replacing your series of print statements with a loop that runs through the dictionarys keys and values.
When youre sure that your loop works, add three more Python terms to your glossary.
When you run your program again, these new words and meanings should automatically be included in the output.
------------------------------------------------------------
Assignment 6-5:
Rivers: Make a dictionary containing two major rivers and the country each river runs through. One key-value pair might be 'nile': 'egypt'.
Use a loop to print a sentence about each river, such as The Nile runs through Egypt.
Use a loop to print the name of each river included in the dictionary.
Use a loop to print the name of each country included in the dictionary.
i need the code in python short and small fast please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
