def is_inbetween(self, l, elem):
        """ Find out if an element is in between
        in a list """

        index = l.index(elem)
        if index == -1:
            return False

        if index>2:
            if index in range(1, len(l) -1):
                return True
            else:
                return False
        else:
            return True
 Find out if an element is in between
        in a list 
recipes/Python/252526_Complex_BooleRegular/recipe-252526.py