Why dictionary is considered as an unordered collection of objects. .. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Why dictionary is considered as an unordered collection of objects. ..

DEFINITION. ..

4th May 2020, 12:31 PM
SARTHAK JAIN
SARTHAK JAIN - avatar
1 Antwort
+ 1
Because you dont pull info out based on index like lists. list[4][2] Would pull the third item from the fifth list in list Dictionaries use keys, so it doesnt actually matter where the item is in the dictionary, you search with keys. Dict['job']['pay'] Would look for the key 'job' then inside job it would look for the key 'pay', and whatever 'pay's value is is what would be returned
4th May 2020, 12:37 PM
Slick
Slick - avatar