Post tagged: namedtuple

Managing records in python

A simple way to access data from a file or from a database is to read each line or row, then assign each value to a list or a tuple. The data that has been read can then be accessed by its position in the list.