I have tried both list sorting and dictionary sorting. I don’t understand the dictionary sorting in this kind of list. The key sorting is sorted by name. How can I sort by the following results? I can extract Out the key and value, but how to turn the key and value into a dictionary
subject_score=[{'Mathematics': '56','Language': '48','English': '45','Chemistry': '12','Biology': '45'}]
for i in subject_score
for key, value in i.items():
print(key,value)
dict1={}
dict2=sorted(dict1.items(),key=lamda dict1: dict1[1], reverse=False)