input_dict = {'One':'Two','Two':'One','Five':'Five'}
sorted_dict = dict(sorted(input_dict.items(),key= lambda x:x[1]))
print("\nBefore Sorting : ",input_dict)
print()
print("After sorting : ",sorted_dict)

2ba6f66da2ba37fe74704a19978c6dce871c218e
<mask token>

<mask token>
print("""
Before Sorting : """, input_dict)
print()
print('After sorting : ', sorted_dict)

input_dict = {'One': 'Two', 'Two': 'One', 'Five': 'Five'}
sorted_dict = dict(sorted(input_dict.items(), key=lambda x: x[1]))
print("""
Before Sorting : """, input_dict)
print()
print('After sorting : ', sorted_dict)

input_dict = {'One':'Two','Two':'One','Five':'Five'}
sorted_dict = dict(sorted(input_dict.items(),key= lambda x:x[1]))
print("\nBefore Sorting : ",input_dict)
print()
print("After sorting : ",sorted_dict)
