Question: Question 1 ( 5 points ) Write a program that creates a dictionary with the following items: { ' a ' : 1 5 ,

Question 1(5 points)
Write a program that creates a dictionary with the following items: {'a':15,'c':35,'b':10}.
Write one or more statements to:
a. print all the keys.
b. print all the values.
c. print all the keys and values pairs in tabular format.
d. print all the keys and values pairs in tabular format ordered by key.
e. print all the keys and values pairs in tabular format ordered by value.

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!