Question: 1. Create a dictionary to store days as key and number for each day as follows. Write a Python script to sort this dictionary BY

1. Create a dictionary to store days as key and number for each day as follows. Write a Python script to sort this dictionary BY VALUE in ascending and descending orders. Print out the results as follows, \{'Tuesday': 2, 'Sunday': 7, 'Monday': 1, 'Thursday': 4, 'Friday': 5, 'Wednesday': 3, "Saturday': 6\} Output in ascending order: Monday =>1 Tuesday 2 Wednesday 3 Thursday 4 Friday 5 Saturday 6 Sunday 7 Output in descending order: Sunday 7 Saturday >6 Friday 5 Thursday 4 Wednesday 3 Tuesday 2 Monday 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
