def valueByLabel(self, label):
        """
        Determine a given value based on the inputted label.

        :param      label   <str>
        
        :return     <int>
        """
        keys = self.keys()
        labels = [text.pretty(key) for key in keys]
        if label in labels:
            return self[keys[labels.index(label)]]
        return 0
def valueByLabel ( self , label ) : keys = self . keys ( ) labels = [ text . pretty ( key ) for key in keys ] if label in labels : return self [ keys [ labels . index ( label ) ] ] return 0
Determine a given value based on the inputted label.

        :param      label   <str>
        
        :return     <int>