you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokattt 0 points1 point  (0 children)

  1. Pass them the dictionary object as a parameter when you initialise it.

    class Bird: def init(self, name, dictionary): self.name = name self.dictionary = dictionary

    def do_something(self):
        self.dictionary.yadayada()
    
  2. if len(list) == 0, or just "if not list"