Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

Are there any questions that you want to ask?

Answered: 1 week ago