def go(self, i):
        '''Jump to a location in history ``i`` steps back or forward.
        
        :param i: The number of steps to jump forward (if positive) or back (if negative).
        :type i: int
        :returns: The current :attr:`location`.
        '''
        if i < 0:
            return self.back(-i)
        if i > 0:
            return self.forward(i)
        return self.location
Jump to a location in history ``i`` steps back or forward.
        
        :param i: The number of steps to jump forward (if positive) or back (if negative).
        :type i: int
        :returns: The current :attr:`location`.
        
recipes/Python/576991_Browser_history_data_structure/recipe-576991.py