def METHOD_NAME(self, answer_id):
    """Return the number of points for an answer, used for partial credit."""
    npoints = self.get_property(answer_id, 'npoints')
    if npoints is not None:
        return npoints
    elif self.is_correct(answer_id):
        return 1
    # if not correct and no points have been assigned, return 0
    return 0