def palindrome_checker_with_deque(str1):

    d1 = Deque()
    d2 = collections.deque()

    for s in str1.lower():
        if s not in STRIP:
            d2.append(s)
            d1.enqueue(s)


    eq1 = True
    while d1.size() > 1 and eq1:
        if d1.dequeue_front() != d1.dequeue():
            eq1 = False

    eq2 = True
    while len(d2) > 1 and eq2:
        if d2.pop() != d2.popleft():
            eq2 = False

    return eq1, eq2
dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/abstract_structures/queues/palindrome_checker_with_deque.py/palindrome_checker_with_deque/original