class CompanyInfo(object):

    def __init__(self, name, founded_yr, empl_count):
        self.name = name
self.founded_yr = founded_yr
self.empl_count = empl_count

def __str__(self):
    return 'Name: {}, Founded: {}, Employee Count: {}'.format(self.name,
        self.founded_yr, self.empl_count)
используя класс вместо списка python