OK, but this is still not working:
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
Qb_list = [["Joe", "Montana", "415-123-4567",
"[email protected]","Candlestick Park"],
["Fran", "Tarkington","651-321-7657",
"[email protected]", "Metropolitan Stadidum"],
["Joe", "Namath", "212-222-7777", "[email protected]", "Shea Stadium"],
["John", "Elway", "303-9876-333", "[email protected]", "Mile
High Stadium"],
["Archie", "Manning", "504-888-1234", "[email protected]",
"Louisiana Superdome"],
["Roger", "Staubach", "214-765-8989", "[email protected]",
"Cowboy Stadium"]]
len_Qb_list = len(Qb_list)
for i in range(0, len_Qb_list):
quarterbacks = Qb(*Qb_list[i])
i = i + 1
print(quarterbacks.last_name(2))
--
Frank L. "Cranky Frankie" Palmeri
Risible Riding Raconteur & Writer
“How you do anything is how you do everything.”
- from Alabama Crimson Tide training room
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor