Google interview question

Write a python code that goes through large datasets and identifies palindromes.

Interview Answer

Anonymous

Feb 25, 2019

x = 'anna' if x == x[::-1]: print ('its a palindrome') else: print ('its not a palindrome')