Summary of Python 3's Built-In Types: Type Mutable Description Syntax Example
Summary of Python 3's Built-In Types: Type Mutable Description Syntax Example
dict mutable Associative array (or dictionary) of key and value {'key1': 1.0, 3:
False}
pairs; can contain mixed types (keys and values),
keys must be a hashable type
ellipsis An ellipsis placeholder to be used as an index in ...
NumPy arrays
float immutable Floating point number, system-defined precision 3.1415927
list mutable List, can contain mixed types [4.0, 'string', True]
set mutable Unordered set, contains no duplicates; can contain {4.0, 'string', True}