Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Restaurant:
- def __init__(self, name, specialty):
- self.name = name
- self.specialty = specialty
- def description(self):
- print(f"Restaurant Name : {self.name}\t Specialty : {self.specialty}")
- def open_hours(self):
- print(f"Restaurant is always open 24/7")
- restaurant_1 = Restaurant('Ma Maison', 'Pastry')
- restaurant_1.description()
- restaurant_1.open_hours()
- restaurant_2 = Restaurant('Rumah Makan Padang', 'Traditional Food')
- restaurant_2.description()
- restaurant_2.open_hours()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement