Question: Create a dictionary variable to store information about yourself, including your name and registration number (and anything else you want to include). Loop through each

 Create a dictionary variable to store information about yourself, including your

Create a dictionary variable to store information about yourself, including your name and registration number (and anything else you want to include). Loop through each item in the dictionary using a for loop, and print the key and value. Download the Python file "em270_week_6_3.py" from Myplace and open in Spyder. This file contains a dictionary with a mapping of English to French words. Using the sorted() function, extend this program to print each key and value in alphabetical order by key. Taking the dictionary definition from the file "em270_week_6_3.py", design and write a program which will allow the user to enter a French word and have the corresponding English word looked up and displayed. Fill in the second column of this table before you write any code. Add any extra test data you think necessary. Stretch objective: Add the following pair of words to the English to French dictionary. How does this change your program design

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