Project link:
https://www.codecademy.com/courses/learn-python-3/projects/basta-fazoolin
I am having a syntax error, but I don’t know what I’m doing wrong.
here is my code:
class Menu:
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
def repr(self):
print("{name} menu available from {start_time} to {end_time}".format(name=self.name, start_time=str(self.start_time), end_time= str(self.end_time))
brunch_list = { “pancakes”: 7.50, “waffles”: 9.00, “burger”: 11.00, “home fries”: 4.50, “coffee”: 1.50, “espresso”: 3.00, “tea”: 1.00, “mimosa”: 10.50, “orange juice”: 3.50 }
early_bird_list = {‘salumeria plate’: 8.00, ‘salad and breadsticks (serves 2, no refills)’: 14.00, ‘pizza with quattro formaggi’: 9.00, ‘duck ragu’: 17.50, ‘mushroom ravioli (vegan)’: 13.50, ‘coffee’: 1.50, ‘espresso’: 3.00}
dinner_list = {‘crostini with eggplant caponata’: 13.00, ‘ceaser salad’: 16.00, ‘pizza with quattro formaggi’: 11.00, ‘duck ragu’: 19.50, ‘mushroom ravioli (vegan)’: 13.50, ‘coffee’: 2.00, ‘espresso’: 3.00}
kids_list = {‘chicken nuggets’: 6.50, ‘fusilli with wild mushrooms’: 12.00, ‘apple juice’: 3.00 }
brunch = Menu(‘brunch’, brunch_list , 11, 16)
early_bird = Menu(“early_bird”, early_bird_list , 1500, 1800)
dinner = Menu(“dinner”, dinner_list , 1700, 2300)
kids = Menu(“kids”, kids_list , 1100, 2100)
print(brunch)
And here is the error message:
File “script.py”, line 12
brunch_list = { “pancakes”: 7.50, “waffles”: 9.00, “burger”: 11.00, “home fries”: 4.50, “coffee”: 1.50, “espresso”: 3.00, “tea”: 1.00, “mimosa”: 10.50, “orange juice”: 3.50 }
^
SyntaxError: invalid syntax