You are viewing a single comment's thread. Return to all comments →
N = int(input()) nums = input().split() print(all(int(i)>0 for i in nums) and any(c==c[::-1] for c in nums))
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 →
For Python3 Platform
Completed in 3 lines ignoring the space between inputs and print statement. It also can be done in two lines writing all the inputs in a single line