DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python Sort the dictionary based on values
dt = {5:4, 1:6, 6:3} sorted_dt_value = sorted(dt.values()) print(sorted_dt_value)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#python
#Sort
#dictionary
#based
#values
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit