10988 : 팰린드롬인지 확인하기

서희찬·2021년 8월 2일
0

백준

목록 보기
13/105

문제

코드

word = list(str(input()))
if list(reversed(word))==word :
    print(1)
else :
    print(0)

해설

reversed 함수를 사용하면 리스트의 요소들을 거꿀로해서 반환해준다...! 기억하자 !

profile
Carnegie Mellon University Robotics Institute | Research Associate | Developing For Our Lives, 세상에 기여하는 삶을 살고자 개발하고 있습니다

0개의 댓글

관련 채용 정보