code: def get_badge(self, kind):
          ''' Get a badge given its kind if present'''
          candidates = [b for b in self.badges if b.kind == kind]
          return candidates[0] if candidates else Nonf get_badge(self, kind):
          ''' Get a badge given its kind if present'''
          candidates = [b for b in self.badges if b.kind == kind]
          return candidates[0] if candidates else None
docs: Get a badge given its kind if present