Basta Fazoolin' - TypeError: 'type' object is not iterable

Code is here:

When I try to run it, I get the following error:

Traceback (most recent call last):
File “”, line 68, in
File “”, line 11, in available_menus
for menu in self.menus:
TypeError: ‘type’ object is not iterable

So it doesn’t seem to think that self.menus is iterable, but I’m not sure why not. I don’t see any obvious typos. I had considered that maybe there’s a problem with invoking self.menus before the Menu class appears but as far as I can tell, this was how it appears in the video solution and that worked. Any assistance would be appreciated.

Your classes look ok, but you might want to investigate where you’re creating your franchises at the bottom, and what you’re passing in.

flagship_store = Franchise(‘1232 West End Road’, menus)

Thanks! I don’t think I would have picked up on that!

1 Like