Input Format
The first line contains an integer  is the total number of integers in the list.
The second line contains the space separated list of  integers.
Constraints
Output Format
Print True if all the conditions of the problem statement are satisfied. Otherwise, print False.

hackerrank any or all problem solution in python

Problem solution in python 2 programming language.

n = input();s = map(int, raw_input().split())
print [False,any(map(lambda x: str(x) == str(x)[::-1], s))][all(map(lambda x: x>0, s))]

Problem solution in python 3 programming language.

n = input();s = map(int, nput().split())
print([False,any(map(lambda x: str(x) == str(x)[::-1], s))][all(map(lambda x: x>0, s))])