code: def likelihood(self):
          '''
          Compute likelihood.
  
          Returns:
              likelihood.
          '''
          try:
              likelihood = self.__success / (self.__success + self.__failure)
          except ZeroDivisionError:
              likelihood = 0.0
          return likelihoof likelihood(self):
          '''
          Compute likelihood.
  
          Returns:
              likelihood.
          '''
          try:
              likelihood = self.__success / (self.__success + self.__failure)
          except ZeroDivisionError:
              likelihood = 0.0
          return likelihood
docs: Compute likelihood.
  
          Returns:
              likelihood.