The last item · 最後の要素
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 · Functions →
English
The last item
A list keeps items in order. xs[-1] is the last one.
日本語
最後の要素
リストは要素を順序通りに保持します。xs[-1] は最後の要素です。
Complete last(xs): return the last item of the list xs. Hint: xs[-1]. · last(xs) を完成させて、リスト xs の 最後 の要素を返してください。ヒント: xs[-1]。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。