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
|
754 Discussions
|
Please Login in order to post a comment
lines , s= int(input()),list(map(str, input().split())) if(all(list(map(lambda x : True if int(x)>0 else False, s))) and any(list(map(lambda x : True if x[::-1]==x else False, s)))):print(True) else: print(False)