def html(self):
        """
        Generate an HTML representation of the competitiveness score. This
        is represented as a percentage or "n/a"

        @return: The result wrapped in an HTML SPAN element, formatted similar to: "<span>1.00%</span>" or "<span>n/a</span>".
        """
        if not self.result is None and self.result in 'value':
            if type(self.result['value']) == float:
                return self.percentage(span=True)
            else:
                return CalculatorBase.html(self)

        return self.empty_html_result
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/Average.html/swapped operands of `in`