Python Built-in Data Types
• Atomic data types:
– int, float (arithmetic ops)
– bool (true, false)
• Ordered collection data types (indexed):
– list ([], mutable, heterogenous)
– string ("", immutable, characters)
– tuple ((), immutable, heterogenous)
• Unordered collection data types (hashing):
– set ({}, mutable, heterogenous, immutable unique obj)
– dictionary ({key:value}, mutable, heterogenous, unique
key pairs, key typically immutable)
12