contents first-class objects built-in types for representing data the none type numeric types sequence types mapping types set types built-in types for representing program structure callable types classestypesand instances modules built-in types for interpreter internals code objects frame objects traceback objects generator objects slice objects ellipsis object object behavior and special methods object creation and destruction object string representation object comparison and ordering type checking attribute access attribute wrapping and descriptors sequence and mapping methods iteration mathematical operations callable interface context management protocol object inspection and dir( operators and expressions operations on numbers operations on sequences string formatting advanced string formatting operations on dictionaries operations on sets augmented assignment lib fl ff