Basta Fazoolin: https://www.codecademy.com/paths/computer-science/tracks/cspath-python-objects/modules/cspath-python-classes/projects/basta-fazoolin
When I got to Step16, my vision of the solution was to produce something like this:
print(flagship_store.available_menus(1700))
Menu Early Bird available 1500 to 1800
Menu Dinner available 1700 to 2300
Menu Kids available 1100 to 2100
And, I almost did it with this:
def available_menus(self, time):
for menu in self.menus:
if menu.start_time <= time <= menu.end_time:
print(menu)
unfortunately ‘None’ gets added on the end as well.
I figured I use another for loop to iterate over the available_menus, but that was a mess.
Any ideas on what to do to?