import collections Student = collections.namedtuple('Student', ['name','age','DOB']) S = Student('Nandini','19','2541997')