Advertisement
Guest User

Untitled

a guest
Aug 16th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. class Restaurant():
  2.  
  3. def __init__(self, restaurant_name, cuisine_type):
  4. self.name = restaurant_name
  5. self.type = cuisine_type
  6.  
  7. def describe_restaurant(self):
  8. # attempt to describe a restaurant
  9. print(self.name.title() + ' serves ' + self.type + ' food.')
  10.  
  11. def open_restaurant(self):
  12. # open and welcome customers
  13. print(self.name.title() + 'is now open' + '\ncome' + '\nHave your favorite ' + self.type + ' food.')
  14.  
  15.  
  16. restaurant1 = Restaurant('big Chill', 'italian')
  17.  
  18. print(restaurant1.name)
  19. print(restaurant1.type)
  20. restaurant1.describe_restaurant()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement