Spyder 6 IDE: Collection Datatypes (tuple, list, set, dict, namedtuple, defaultdict, deque classes)

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=04YikOUPKLo



Duration: 0:00
61 views
2


In the Python builtins module, there are four fundamental collections, the tuple, list, set and dict. The tuple is an immutable Sequence of references to Python objects and the list is its mutable counterpart. The set is an immutable Collection of unique references. The dict is a MutableMapping, mapping an object to an immutable key.

The builtins collections are supplemented by the namedtuple, defaultdict, deque, Counter and ChainMap in the collections module which are essentially subclasses of the builtins collections. The collections module also contains the UserString, UserList and UserDict for the purposes of subclassing.

This video looks at the Python Datamodel and explores how it works for across collections before discussing the unique behaviour of each collection.

Spyder IDE Playlist:
   • Spyder IDE: Scientific Python Develop...  

#python #spyder #collection #tuple #list #set #dict #namedtuple #defaultdict #deque #Counter #datamodel