DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sort the dictionary in python
d = {2: 3, 1: 89, 4: 5, 3: 0} od = sorted(d.items()) print(od)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sort
#dictionary
#python
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit