aboutsummaryrefslogtreecommitdiff
path: root/problems/findpalindromes.py
blob: 4a0438e96784046a0828f64a52f63694529c1bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
def check_palindrome(s):
    if s == s[::-1]:
        return "Strong Palindrome"
    elif s.lower() == s.lower()[::-1]:
        return "Weak Palindrome"
    else:
        return "Not a Palindrome"

n = int(input().strip())
for _ in range(n):
    s = input().strip()
    print(check_palindrome(s))