You are viewing a single comment's thread. Return to all comments →
N = int(input()) integers = list(map(int,input().split())) def is_palindromic(integer): string = str(integer) reverse_string = string[-1::-1] if string == reverse_string : return True print((all(map(lambda x: x>0, integers))) and (any(map(lambda x: is_palindromic(x), integers))))
Seems like cookies are disabled on this browser, please enable them to open this website
Any or All
You are viewing a single comment's thread. Return to all comments →