(self)
str(self)
str(self)
str ( self )
def __str__(self):
        """str(self)"""
        if self._denominator == 1:
            return str(self._numerator)
        else:
            return '%s/%s' % (self._numerator, self._denominator)
def __str__ ( self ) : if self . _denominator == 1 : return str ( self . _numerator ) else : return '%s/%s' % ( self . _numerator , self . _denominator )