month_salary = {
'A': 1000,
'o': 2000,
'C':600,
'R':6541
}
print(max(month_salary, key=lambda x:month_salary[x]))
print(sorted(month_salary, key =lambda x:month_salary[x], reverse = False))
D:\Python\Python36\python.exe D:/Python_test/day_lesson/test.py
R
[‘C’, ‘A’, ‘o’, ‘R’]
Process finished with exit code 0