Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Restaurant():
- def __init__(self, restaurant_name, cuisine_type):
- self.name = restaurant_name
- self.type = cuisine_type
- def describe_restaurant(self):
- # attempt to describe a restaurant
- print(self.name.title() + ' serves ' + self.type + ' food.')
- def open_restaurant(self):
- # open and welcome customers
- print(self.name.title() + 'is now open' + '\ncome' + '\nHave your favorite ' + self.type + ' food.')
- restaurant1 = Restaurant('big Chill', 'italian')
- print(restaurant1.name)
- print(restaurant1.type)
- restaurant1.describe_restaurant()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement