## objects attributes set above attribs = ['name','content','price'] ## print all attributes in list for attrib in attribs: print myClass.(attrib)