0
what is the difference between set and dictionary
2 Antworten
+ 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/
+ 2
In a dictionary, each element necessarilly needs two values (key and value).