You are viewing a single comment's thread. Return to all comments →
N = int(input())
input_list = list(map(int,input().split()))
print(len(input_list)==N and all(x>=0 for x in input_list) and any(str(x)==str(x)[::-1] for x in input_list))
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 →
N = int(input())
input_list = list(map(int,input().split()))
print(len(input_list)==N and all(x>=0 for x in input_list) and any(str(x)==str(x)[::-1] for x in input_list))