Open jmpark0118 opened 3 years ago
if __name__ == '__main__':
n = int(input())
l = list(map(int, input().split()))
print(all([all([l[i]>0 for i in range(n)]), any([str(l[i])==str(l[i])[::-1] for i in range(n)])]))
if __name__ == '__main__':
n, l = int(input()), list(input().split())
print(all([int(l[i])>0 for i in range(n)]) and any([l[i]==l[i][::-1] for i in range(n)]))
출처 : https://www.hackerrank.com/challenges/any-or-all/problem