Do dictionaries index not start at 0 like an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Do dictionaries index not start at 0 like an array?

5th Aug 2016, 9:55 PM
Patrick
Patrick - avatar
3 Answers
+ 1
you do not use an index to get the data from a dictionary.
8th Aug 2016, 6:53 AM
Bernhard Eriksson
Bernhard Eriksson - avatar
+ 1
You use a key to retrieve data. Which has an associated value.
9th Aug 2016, 7:02 AM
Luis Rodriguez
Luis Rodriguez - avatar
0
dictionary don't have indexes you can use Key's for retrieving data from dictionary
22nd Sep 2016, 3:11 PM
Sumit Patidar
Sumit Patidar - avatar