Tuples Tuples are much like lists, except that they cannot be changed in any way. Once created, a tuple will always have the same elements. It is often necessary to repeat some operation for each element of a sequence. This is called a loop over the sequence. The operations that are part of the loop are indicated by indentation .
Loops work with any sequence.
Text file objects are defined in the module Scientific. Reading Text files can be treated as sequences of lines, with the limitation that the lines must be read in sequence. Text file objects can also deal with compressed files. Programs will of course receive the uncompressed version of the data. Files opened for writing should be closed at the end to make sure that all data is actually written to the file.