Question: 6 . 9 ( Dictionary Manipulations ) Using the following dictionary, which maps country names to Internet top - level domains ( TLDs ) :

6.9(Dictionary Manipulations) Using the following dictionary, which maps country names to Internet top-level domains (TLDs):
tlds ={'Canada': 'ca', 'United States': 'us', 'Mexico': 'mx'}
perform the following tasks and display the results:
Check whether the dictionary contains the key 'Canada'.
Check whether the dictionary contains the key 'France'.
Iterate through the keyvalue pairs and display them in two-column format.

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!