본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 10174번 팰린드롬

by 현장 2022. 6. 7.

-Code

for _ in range(int(input())):
    s = input().lower()
    if s == s[::-1]:
        print("Yes")
    else:
        print("No")