We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Built-Ins
- Any or All
- Discussions
Any or All
Any or All
Sort by
recency
|
687 Discussions
|
Please Login in order to post a comment
n, integers = input(), tuple(input().split(" ")) print(all(int(x) > 0 for x in integers) and any(y == y[::-1] for y in integers))