ashu.835 #pyhton arr = list(map(int(input().split())) a1 = [] for i in range(1, len(arr)+1): a1.append(arr[-i]) if a == a1: print(“palindrome”) else: print(“not a palindrome”) Log in to Reply
#pyhton
arr = list(map(int(input().split()))
a1 = []
for i in range(1, len(arr)+1):
a1.append(arr[-i])
if a == a1:
print(“palindrome”)
else:
print(“not a palindrome”)