I’m stuck on this Basta Fazoolin’ challenge. I keep getting the error:
Traceback (most recent call last):
File “script.py”, line 59, in
File “script.py”, line 46, in available_menus
for menu in self.menus:
TypeError: ‘type’ object is not iterable
So far everything runs fine up to item 16 where you need to iterate through the menus to find which ones are available at a given time.
I’ve checked the ‘help’ video’s code as well as others on this site and i can’t figure out what’s going on.
def available_menus(self, time): menus_list= for menu in self.menus: if time >=menu.start_time and time <=menu.end_time: menus_list.append(menu) return menus_list`
“menus” is a list of the menu names as the help video shows to do vs using inheritance`