fork download
  1. class Restaurant():
  2.  
  3. def __init__(self, restaurant_name, cuisine_type):
  4. self.restaurant_name = restaurant_name
  5. self.cuisine_type = cuisine_type
  6.  
  7. def describe_restaurant(self):
  8. print("\nThe restaurant is : " + self.restaurant_name)
  9. print('\nThe cuisine offered is : '+ self.cuisine_type)
  10.  
  11. def open_restaurant():
  12. print('\n\nThe restaurant is open! ')
  13.  
  14. rest_1 = Restaurant("Good", 'Indian')
  15. rest_1.describe_restaurant()
  16. print("Hello")
Success #stdin #stdout 0.04s 9288KB
stdin
Standard input is empty
stdout
The restaurant is : Good

The cuisine offered is : Indian
Hello