You are viewing a single comment's thread. Return to all comments →
list_len = int(input()) list_num = input().split() is_positive = all(float(num)>=0 for num in list_num) has_palinfromic = any(num == num[::-1] for num in list_num) print(is_positive and has_palindromic)
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 →