elements = ['121', '9', '55', '5']
I am trying to check if any of the items in elements list is a palindromic number. If there exists any, return True(else False). I tried implementing by using map + lambda: here is the snippet,
print(any(map(lambda x: (all(map(lambda y: x[y] == x[-y-1], range(int(len(x)/2))))), elements )))
but I couldn't implement the same idea using list comprehension technique. Can someone please, suggest me with it. Here is what i did:
print(any([True if x[y] == x[-y-1] for y in (range(int(len/2)) for x in elements)]))