You are viewing a single comment's thread. Return to all comments →
n = int(input()) lst = list(map(int, input().split())) res = False count = 0 for i in range(len(lst)): if lst[i] > 0: count+=1 if str(lst[i]) == str(lst[i])[::-1]: res = True if count== len(lst) and res: print("True") else: print("False")
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 →