dict={41:'neha',32:'salma',31:'akash',56:'abhay'}
lst=sorted(dict,reverse=True)
print(lst)
# dict.pop(41)
print(dict)
for i in range(len(dict)):
print("Your Values are printed as : " ,dict[lst[i]])
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter