You are viewing a single comment's thread. Return to all comments →
n, integers = input(), tuple(input().split(" ")) print(all(int(x) > 0 for x in integers) and any(y == y[::-1] for y in 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 →
n, integers = input(), tuple(input().split(" ")) print(all(int(x) > 0 for x in integers) and any(y == y[::-1] for y in integers))