the file coverage here will apply both to typical text and binary files of the sort we'll meet hereas well as to more advanced file-processing modes you may choose to explore later tuples the last collection type in our survey is the python tuple tuples construct simple groups of objects they work exactly like listsexcept that tuples can' be changed in place (they're immutableand are usually written as series of items in parenthesesnot square brackets although they don' support as many methodstuples share most of their properties with lists here' quick look at the basics tuples areordered collections of arbitrary objects like strings and liststuples are positionally ordered collections of objects ( they maintain left-to-right order among their contents)like liststhey can embed any kind of object accessed by offset like strings and listsitems in tuple are accessed by offset (not by key)they support all the offset-based access operationssuch as indexing and slicing of the category "immutable sequencelike strings and liststuples are sequencesthey support many of the same operations howeverlike stringstuples are immutablethey don' support any of the in-place change operations applied to lists fixed-lengthheterogeneousand arbitrarily nestable because tuples are immutableyou cannot change the size of tuple without making copy on the other handtuples can hold any type of objectincluding other compound objects ( listsdictionariesother tuples)and so support arbitrary nesting arrays of object references like liststuples are best thought of as object reference arraystuples store access points to other objects (references)and indexing tuple is relatively quick table - highlights common tuple operations tuple is written as series of objects (technicallyexpressions that generate objects)separated by commas and normally enclosed in parentheses an empty tuple is just parentheses pair with nothing inside table - common tuple literals and operations operation interpretation (an empty tuple ( , one-item tuple (not an expressiont ( 'ni' four-item tuple 'ni' another four-item tuple (same as prior line tuplesfilesand everything else