#!/usr/bin/env python # coding: utf-8 # In[ ]: # Firstly we declare dictionary to a variable name my_dict: my_dict = {'key_1': [20, 80, 50], 'key_2': [200, 10, 100], 'key_3': [300, 20, 400]} # In[4]: # we declare our dictionary keys to a and, values to b variables: # then we sort our dictionay using sorted() for values and forLoop for the keys and values of our dictionary: sort_my_dict = {a: sorted(b) for a, b in my_dict.items()} # In[5]: #finally we print our updated sorted dictionary print(sort_my_dict) # In[ ]: