def is_palindrome(palindrome):
# making the variables to see if the two match
front_index=0
back_index=-1
# checking if they match
while bar[front_index]==[back_index] and front_index!=bar[-1]:
front_index+=1
back_index-=1
#checking if it's a palindrome based off while-loop
if front_index==bar[-1]:
print("it's a palindrome")
else:
print("nope")
# calling the function
is_palindrome(input("enter a palindrome here: ")