Python Program to Sort a Dictionary by Value (Sort only the values)

bookmark

dt = {5:4, 1:6, 6:3}

sorted_dt_value = sorted(dt.values())
print(sorted_dt_value)

 

Output

[3, 4, 6]