تم الحل ✓
categoryعلوم الحاسوب
schoolبكالوريوس
event_available2026-07-15
السؤال
Transcribed Image Text:
class Address:
#Attributes: self.street, self.city
class Person:
#Attributes: self.name, self.email
Iclass Contact (Person, Address):
# Initializes the class Person and Address
Person.__init__(self, name, email)
Address. _init_(self, street, city)
class Phonebook:
# Maintains a list of contacts
def __init__(self):
self.contactlist = []
def add():
#appends contacts to the contact list
def show(self):
# Displays all the contacts in the contact list
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.