When I got to Step16, my vision of the solution was to produce something like this:
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?