I have a basic question about how to load a class. If I have this class: class QB: def __init__(self, first_name='', last_name='', phone='', email='', stadium=''): self.first_name = first_name self.last_name = last_name self.phone = phone self.email = email self.stadium = stadium
and this data: QB_list = [["Joe", "Montana", "415-123-4567", "joe.mont...@gmail.com","Candlestick Park"], ["Fran", "Tarkington","651-321-7657", "frank.tarking...@gmail.com", "Metropolitan Stadidum"], ["Joe", "Namath", "212-222-7777", "joe.nam...@gmail.com", "Shea Stadium"], ["John", "Elway", "303-9876-333", "john.el...@gmai.com", "Mile High Stadium"], ["Archie", "Manning", "504-888-1234", "archie.mann...@gmail.com", "Louisiana Superdome"], ["Roger", "Staubach", "214-765-8989", "roger.staub...@gmail.com", "Cowboy Stadium"]] What is the best way to load it? I'm thinking there should be an append method, but I'm having trouble getting it to work. -- Frank L. "Cranky Frankie" Palmeri _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor