dictionary q.2 we kan sort dictionary according to keys but haow can we sort is based on values? coz’ marks are values of dictionary in abouve example.
for key in sorted(student):
… print(“%s: %s” %( key,student[key] ) )
I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot! fashion 1921