Skip to content

Commit 14f11a3

Browse files
committed
fix text on sorted dict
1 parent 8d7d3a1 commit 14f11a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

12_functions_advanced.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,9 @@
10241024
"Let's see how we can created a \"sorted dictionary\".\n",
10251025
"Recall that a dictionary is an **unordered collection**, so it doesn't have a built-in order.\n",
10261026
"\n",
1027-
"_(Well, that's not completely true. The most recent versions of Python store the key-value pairs in the order they are entered or supplied.\n",
1027+
"_(Well, that's not completely true.\n",
1028+
"Regarding insertion order, up until Python 3.5 dictionaries were unordered.\n",
1029+
"Starting from Python 3.6 dictionaries remember the order of items inserted.\n",
10281030
"The thing is: accessing a dictionary **by index** doesn't make sense.)_"
10291031
]
10301032
},

0 commit comments

Comments
 (0)