The last letter · 마지막 문자
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
This one builds on a lesson you haven't finished yet. Do that lesson first: · 이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · Working with strings →
English
The last letter
word is "python". Store its last character in last, without counting the letters yourself.
A negative position counts from the end: word[-1] is the last character, word[-2] the one before it. It works whatever the length.
한국어
마지막 문자
word는 "python"입니다. 글자를 직접 세지 않고 마지막 문자를 last에 저장합니다.
음의 위치는 끝에서 세는 것입니다: word[-1]는 마지막 문자, word[-2]은 그 앞의 문자입니다. 길이가 어떻게 되든 이 방식은 작동합니다.
word is "python". Store its last character in last, without counting the letters yourself. · word는 "python"입니다. 글자를 직접 세지 않고 마지막 문자를 last에 저장합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.