Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
"There are currently two built-in set types, set and frozenset. The set type is mutable — the contents can be changed using methods like add() and remove(). Since it is mutable, it has no hash value and cannot be used as either a dictionary key or as an element of another set. The frozenset type is immutable and hashable — its contents cannot be altered after it is created; it can therefore be used as a dictionary key or as an element of another set." https://docs.python.org/3/library/stdtypes.html#set-types-set-frozenset
17th May 2019, 1:42 PM
Anna
Anna - avatar