(self, right)
return False
This string orders after the right-hand side.
This string orders after the right-hand side.
This string orders after the right - hand side .
def gt(self, right):
        """This string orders after the right-hand side."""
        left = self.to_str()
        right = right.to_str()
        shortest = min(len(left), len(right))
        for i in range(shortest):
            if left[i] > right[i]:
                return True
            elif left[i] < right[i]:
                return False
        # the same so far...
        # the shorter string is said to be less than the longer,
        # provided they are the same up till the length of the shorter.
        if len(left) > len(right):
            return True
        # left is shorter, or equal strings
        return False
def gt ( self , right ) : left = self . to_str ( ) right = right . to_str ( ) shortest = min ( len ( left ) , len ( right ) ) for i in range ( shortest ) : if left [ i ] > right [ i ] : return True elif left [ i ] < right [ i ] : return False # the same so far... # the shorter string is said to be less than the longer, # provided they are the same up till the length of the shorter. if len ( left ) > len ( right ) : return True # left is shorter, or equal strings return False