mirror of
https://github.com/ada-dmitry/python_ada.git
synced 2026-09-24 01:10:25 +00:00
added many files
This commit is contained in:
+16
-1
@@ -1 +1,16 @@
|
||||
print("Hello, World!")
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user