the apartment class extends propertyand is similar in structureclass apartment(property)valid_laundries ("coin""ensuite""none"valid_balconies ("yes""no""solarium"def __init__(selfbalcony=''laundry=''**kwargs)super(__init__(**kwargsself balcony balcony self laundry laundry def display(self)super(display(print("apartment details"print("laundry%sself laundryprint("has balcony%sself balconydef prompt_init()parent_init property prompt_init(laundry 'while laundry lower(not in apartment valid_laundrieslaundry input("what laundry facilities does "the property have({})format"join(apartment valid_laundries))balcony 'while balcony lower(not in apartment valid_balconiesbalcony input"does the property have balcony"({})format"join(apartment valid_balconies))parent_init update("laundry"laundry"balcony"balcony }return parent_init prompt_init staticmethod(prompt_initthe display(and __init__(methods call their respective parent class methods using super(to ensure the property class is properly initialized