code: def range_matches(self, other):
          
          return (
              self.begin == other.begin and 
              self.end == other.end
          )
docs: Whether the begins equal and the ends equal. Compare __eq__().
          :param other: Interval
          :return: True or False
          :rtype: bool