code: def categories(self):
      '''
      List of categories of a page.
      '''
  
      if not getattr(self, '_categories', False):
        self._categories = [re.sub(r'^Category:', '', x) for x in
          [link['title']
          for link in self.__continued_query({
            'prop': 'categories',
            'cllimit': 'max'
          })
        ]]
  
      return self._categorief categories(self):
      '''
      List of categories of a page.
      '''
  
      if not getattr(self, '_categories', False):
        self._categories = [re.sub(r'^Category:', '', x) for x in
          [link['title']
          for link in self.__continued_query({
            'prop': 'categories',
            'cllimit': 'max'
          })
        ]]
  
      return self._categories
docs: List of categories of a page.