Why dictionary is considered as an unordered collection of objects. .. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

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

DEFINITION. ..

4th May 2020, 12:31 PM
SARTHAK JAIN
SARTHAK JAIN - avatar
1 ответ
+ 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