И
def init(self,restaurant_name,cuisine_type):
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
def describe_restaurant(self):
long_name = '"' + self.restaurant_n
ame + '"\n' + self.cuisine_type
return long_name.title()
def open_restaurant(self):
print(self.restaurant_name.title() + "is open")
class IceCreamStand(Restaurant):
def init(self,restaurant_name,cuisine_type,flavors = 1):
self.flavors = flavors
super().init(self,restaurant_name,cuisine_type)
def icecream_type(self):
print(flavors)
my_icecream = IceCreamStand('LoLa','greek cuisine')
print(my_icecream.icecream_type())