from Deque import *

def pal_checker(a_string) :
	char_deque = Deque()

	for ch in a_string :
		char_deque.add_rear(ch)

	still_equal = True

	while char_deque.size > 1 and still_equal :
		first = char_deque.remove_front()
		last  = char_deque.remove_rear()
		if first != last :
			still_equal = False

		return still_equal

print (pal_checker("lsdkjfskf"))
print (pal_checker("radar"))

349bbad06ead78ab42d65f81cd83ab7f294de6fe
<mask token>

<mask token>


def pal_checker(a_string):
    char_deque = Deque()
    for ch in a_string:
        char_deque.add_rear(ch)
    still_equal = True
    while char_deque.size > 1 and still_equal:
        first = char_deque.remove_front()
        last = char_deque.remove_rear()
        if first != last:
            still_equal = False
        return still_equal


<mask token>

<mask token>


def pal_checker(a_string):
    char_deque = Deque()
    for ch in a_string:
        char_deque.add_rear(ch)
    still_equal = True
    while char_deque.size > 1 and still_equal:
        first = char_deque.remove_front()
        last = char_deque.remove_rear()
        if first != last:
            still_equal = False
        return still_equal


print(pal_checker('lsdkjfskf'))
print(pal_checker('radar'))

from Deque import *


def pal_checker(a_string):
    char_deque = Deque()
    for ch in a_string:
        char_deque.add_rear(ch)
    still_equal = True
    while char_deque.size > 1 and still_equal:
        first = char_deque.remove_front()
        last = char_deque.remove_rear()
        if first != last:
            still_equal = False
        return still_equal


print(pal_checker('lsdkjfskf'))
print(pal_checker('radar'))

from Deque import *

def pal_checker(a_string) :
	char_deque = Deque()

	for ch in a_string :
		char_deque.add_rear(ch)

	still_equal = True

	while char_deque.size > 1 and still_equal :
		first = char_deque.remove_front()
		last  = char_deque.remove_rear()
		if first != last :
			still_equal = False

		return still_equal

print (pal_checker("lsdkjfskf"))
print (pal_checker("radar"))
