0

what is the difference between set and dictionary

python

9th Jul 2019, 4:07 AM
facebook hacking
facebook hacking - avatar
2 ответов
+ 3
Sets contain unique immutable elements. Dictionaries are key-value pairs, where the keys must be immutable and unique, but the values can be mutable. Both can be iterated, but they have different built-in functions. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2450/ https://www.sololearn.com/learn/Python/2464/
9th Jul 2019, 5:03 AM
Tibor Santa
Tibor Santa - avatar
+ 2
In a dictionary, each element necessarilly needs two values (key and value).
9th Jul 2019, 6:28 AM
Sonic
Sonic - avatar