Domanda di colloquio di Google

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

Risposta di colloquio

Anonimo

25 feb 2019

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