• + 0 comments

    My first submission used if __name__ in "__main__": as I was used to another system where that was a requirement in solution files or the test didn't run. The third line with the print was over 110 characters.

    Once I realized my line 1 wasn't required I got it down to two lines. Then I refined it further and renamed numbers to nums so second line would be less than 80 characters total.

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