mirror of
https://github.com/ada-dmitry/python_ada.git
synced 2026-09-24 01:10:25 +00:00
17 lines
463 B
Python
17 lines
463 B
Python
class restaurant():
|
|
def __init__(self, restaurant_name, cuisine_type):
|
|
self.restaurant_name = restaurant_name
|
|
self.cuisine_type = cuisine_type
|
|
|
|
def describe_restaurant(self):
|
|
print(f'{self.restaurant_name.title()}, {self.cuisine_type.title()}')
|
|
|
|
def open_rest(self):
|
|
print(f'Ресторан {self.restaurant_name.title()} открыт!')
|
|
|
|
rest = restaurant('Mish', 'rus')
|
|
|
|
rest.describe_restaurant()
|
|
|
|
rest.open_rest()
|