Hiya, I'm stuck on Basta Fazoolin

When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!

If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! :slight_smile:

I am trying to ask a question, please be patient as I’m new to this process:

1100
Traceback (most recent call last):
File “script.py”, line 62, in
flagship_store = Franchise(‘1232 West End Road’, menus)
TypeError: object() takes no parameters

that is the result of my code.

Why? anyone

Your code for the Franchise constructor has a spelling error:

class Franchise:
  def __innit__(self, address, menus):
    self.address = address
    self.menus = menus
  def __repr__(self):
    return self.address  

Try changing that to __init__ and I think it might work.

1 Like

Thank you for the help. Sometimes it takes fresh eyes…

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.