In this HackerRank Any or All problem solution You are given a space-separated list of integers. If all the integers are positive, then you need to check if an integer is a palindromic integer.

HackerRank Any or All in python problem solution

HackerRank Any or All in python problem solution

n = input()
x = list(map(int, input().split())) 
if all(i>0 for i in x):
    print(any(str(i) == str(i)[::-1] for i in x))
else:
    print(False)