dict = {"Python":750,"Java":950,"Ruby":700,"C++":200} sort_values = sorted(dict.items(), key=lambda y: y[1], reverse=True) for i in sort_values: print(i[0], i[1])