Koala - 7기/기초 알고리즘 스터디

[백준/python] 13235 팰린드롬

알 수 없는 사용자 2022. 7. 31. 22:27

코드

n = input()
ans = n[::-1]

if ans in n :
  print('true')
else :
  print('false')

 

 

저작자표시 (새창열림)