replace '%s' in the string "<BaseConverter: base%s (%s)>" with length of self.digits and self.digits, respectively, return the string.
return "<BaseConverter: base%s (%s)>" % ( len ( self . digits ) , self . digits )