Explanation of list and dictionary | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Explanation of list and dictionary

please ah need an explanation of dictionary and list ... I don't seem to always get it

10th Mar 2017, 5:38 PM
Seima Okon
Seima Okon - avatar
3 Answers
+ 4
A dictionary is a collection of pairs. The first element of every pair is called "key", and the second element of the pair is the "value" associated to the key. There can be no duplicate keys. A list is just a collection of values, unordered, and eventually with duplicates.
10th Mar 2017, 5:53 PM
Álvaro
0
thanks Ali
10th Mar 2017, 5:55 PM
Seima Okon
Seima Okon - avatar
0
ah need a more exaggerated exp
10th Mar 2017, 5:56 PM
Seima Okon
Seima Okon - avatar