• + 0 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

    N = int(input())
    nums = input().split()
    
    print(all(int(i)>0 for i in nums) and any(c==c[::-1] for c in nums))