Skip to content

Commit 2334a20

Browse files
committed
initial commit
1 parent d4d5695 commit 2334a20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

any or all.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
user = int(input())
2+
user_list = input().split()
3+
4+
print(all(int(i) > 0 for i in user_list)
5+
and any(j == j[::-1] for j in user_list))

0 commit comments

Comments
 (0)