script.py
class Menu:
# Give Menu a constructor with the five parameters self, name, items, start_time, and end_time.
def __init__(self, name, items, start_time, end_time):
self.name = name
self.items = items
self.start_time = start_time
self.end_time = end_time
# Give our Menu class a string representation method that will tell you the name of the menu. Also, indicate in this representation when the menu is available.
def __repr__(self):
return self.name + " menu available from " + str(self.start_time) + "h to " + str(self.end_time) + "h."
This file has been truncated. show original